home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-05-09 | 436.9 KB | 10,482 lines | [TEXT/R*ch] |
- Subject: March MacScripting digest
- Date: Mon, 04 Apr 94 15:46:26 -0500
- From: Fred Terry <pfterry@lks.csi.com>
-
-
- This is the March digest of the MacScripting mailing list.
-
- =========================================================================
- Date: Tue, 1 Mar 1994 09:47:07 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Chris Kier <chris@RETINA.ANATOMY.UPENN.EDU>
- Subject: Frontier printing problems
-
- Hello,
-
- I'm running Frontier 3.01 on a Mac IIci with no special
- system extensions. Everytime I try to print from Frontier
- to my HP DeskWriter, Frontier unexpectedly quits. I am using
- the DeskWriter 4.0 appletalk driver, but have tried several
- older HP drivers with the same weird behavior. I am having
- no problems printing from any other applications.
-
- Anybody else experiencing this problem? Any clues to fixing
- it?
-
- Thanks
- Chris
- chris@retina.anatomy.upenn.edu
- =========================================================================
- Date: Tue, 1 Mar 1994 15:00:35 GMT0BST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Alistair G. Lowe-Norris" <agl1@LEICESTER.AC.UK>
- Subject: AppleScript - RunTime/Developers Differences
-
- Hi there!
-
- Could someone spend the time to explain what differences there are
- between the runtime version of AS supplied with the Complete AS
- Handbook or the TAO of AS book - and the Developers Kit?
-
- I am considering the purchase of all 3 - but the FAQ is not
- particularly helpful in explaining what the differences are except
- the price.
-
- What can I not do with the RunTime version that I would need the full
- version for?
-
- Thanks for your time.
-
- Alistair.
- --
- ---------------------------------------------------------------------------
- | Alistair G. Lowe-Norris, Systems Programmer UK:agl1@uk.ac.leicester |
- | Computer Centre, Leicester University, Non-UK:agl1@leicester.ac.uk |
- | University Road, Leicester LE1. 7RH., U.K. |
- | |
- | UK Tel: (0533) 522250 Fax: (0533) 525027 |
- | Non-UK Tel: +44 (533) 522250 Fax: +44 (533) 525027 |
- ---------------------------------------------------------------------------
- =========================================================================
- Date: Tue, 1 Mar 1994 11:24:06 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jay Martin <jay_martin@POSTOFFICE.AIDT.EDU>
- Subject: Re> AppleScript - RunTime/Developers Differences
-
- Alistair,
-
- The versions supplied with the books are typically 1.0, so the developer's
- kit (1.1) is one version ahead (although the books may have caught up by
- now). The two most important things you get with the dk are FrontMost, which
- allows you to create graphical front-ends to scripts, and the runtime
- distribution license, which allows you to distribute the runtime parts with
- your script applications. There is, however, some vagueness about the
- distribution license.
-
- FrontMost is worth the price, in my opinion. We've written several script
- front-ends in it and while it's not perfect, it does create nice interfaces
- (no more 4D client for small database tasks!).
-
- Jay
- +---------------------------------------+----------------------------------+
- | --------------+ Jay M. Martin | All ideas here are my own and |
- | +---------- | Alabama Industrial | in no way reflect my employer's. |
- | | ----------+ Development Training | martin@aidt.edu |
- | +---------------------------------- | (But what do they know?) |
- +---------------------------------------+----------------------------------+
-
- ------ From: Macintosh Scripting Systems, Mar 1, 1994 ------
-
- Hi there!
-
- Could someone spend the time to explain what differences there are
- between the runtime version of AS supplied with the Complete AS
- Handbook or the TAO of AS book - and the Developers Kit?
-
- I am considering the purchase of all 3 - but the FAQ is not
- particularly helpful in explaining what the differences are except
- the price.
-
- What can I not do with the RunTime version that I would need the full
- version for?
-
- Thanks for your time.
-
- Alistair.
- =========================================================================
- Date: Tue, 1 Mar 1994 11:42:38 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jim Van Peursem <jvp@TOOLS1.EE.IASTATE.EDU>
- Subject: Developer question
-
- This may be pushing the intent of this list, but I have a question for
- the app developers on the list. I currently have an application that
- generates registration numbers for our distribution disks. You stick in
- an unregistered disk, and it reports the registration number that it
- puts in the program. Easy enough.
-
- Now I would like to have this same app send the registration numbers to
- FM Pro to put in a database. I've been a Mac programmer for a number of
- years now, and have IM 1-6, plus NIM: Text and NIM: IAC, Developer CD's,
- etc. Can anyone tell me where to get started on the app side of such a
- project? I suspect it will be pretty simple given the limited scope of
- the problem. Just stick the number in an AppleEvent and send it to FM
- Pro (once it's set up correctly anyway).
-
- Can anyone offer same code, or a pointer to sources I should read?
-
- +---------------------------------------------------------------+
- | Jim Van Peursem - Ph.D. Candidate - Ham Radio -> KE0PH |
- | Department of Electrical Engineering and Computer Engineering |
- | Iowa State University - Ames, IA 50011 : (515) 294-8339 |
- | internet - jvp@iastate.edu -or- jvp@cpre1.ee.iastate.edu |
- +---------------------------------------------------------------+
- =========================================================================
- Date: Tue, 1 Mar 1994 09:40:01 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Frontier printing problems
-
- At 9:47 3/1/94 -0500, Chris Kier wrote:
- >I'm running Frontier 3.01 on a Mac IIci with no special
- >system extensions. Everytime I try to print from Frontier
- >to my HP DeskWriter, Frontier unexpectedly quits.
-
- Thanks for the report. This isn't something I can check out here (no
- DeskWriter available).
-
- I have forwarded your entire message to Doug Baron of UserLand for his
- attention.
-
- I will also watch the list for any replies.
-
- --John
-
- --John W. Baxter Port Ludlow, WA USA jwbaxter@pt.olympus.net
- UserLand Software support
- =========================================================================
- Date: Tue, 1 Mar 1994 13:50:43 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Comments: <Parser> W: Invalid RFC822 field - "From wizrdz!hag Tue Mar 1
- 12:56:25 1994". Rest of header flushed.
- Comments: <Parser> E: "From:"/"Sender:" field is missing.
- From: Undetermined origin c/o Postmaster <POSTMASTER@DARTCMS1.BITNET>
-
- >I'm trying to figure out a way to use AppleScript to get the status
- >of the serial ports (in use, not in use). Can this be done? I saw a couple
-
- Well, I wrote a program a few years ago for Frontier, an AppleEvent
- serving program that allows access to the serial port (this was before
- OSAXen/UCMDs) which among other things would check the Open flag of a
- Driver to detect if the Serial port was already open, and included an event
- to ask if the serial port was in use. You can get via ftp to
- gaea.kgs.ukans.edu as /frontier/PhoneDial2.1.cpt or something like that.
- Source is included, so it shouldn't be hard to rip out the serial port open
- code for use in an OSAX. If someone does do this, please mention me
- somewhere in the credits. Thanks.
-
-
- Hag
- ***********************************************************************
- * Daniel Hagerty (508)693-5614;Box 1234,Vineyard Haven, MA 02568-1234 *
- * Internet: <hag@eddie.mit.edu> RelayNet: ->5099 FidoNet: 1:331/201 *
- ***********************************************************************
- =========================================================================
- Date: Tue, 1 Mar 1994 15:09:07 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lee K. Hoong" <lhoong@EMORYU1.CC.EMORY.EDU>
- Subject: Re(5): Event handlers: how?
-
- Mark Aiken writes:
- > This is all very well. I've gotten a handler to work using the
- >notation
- >
- >on <<event ABDCabcd>> of directParam
- > display dialog (directParam as string)
- >end <<event ABCDabcd>>
- >
- > This works fine. However, I still haven't convinced AS to accept
- >paramaters other than the direct one.
-
- Yes, I've noticed that too.
-
- >In my app's 'aete', I define the names for the
- >paramaters of a certain event. Let's say the event
- >class is 'ABCD' and the event ID is 'abcd'. Let's also say that I have
- >a direct parameter and another paramater, keyword '1234', named
- >otherParam. All this is in my 'aete', opened from the Script Editor.
- >This *does not* work:
- >
- >on <<event ABCDabcd>> of directParam given otherParam:varName
- > display dialog (varName as string)
- >end <<event ABCDabcd>>
- >
- > I get the error: "Paramater otherParam is missing from <<event
- >ABCDabcd>>. But it isn't. I checked.
- >
- > Is there another manual notation like the <<event ABCDabcd>>
- >notation that could use to indicate the keyword of my other paramater?
- >Something like
- >
- >on <<event ABCDabcd>> of directParam <<parameter 1234>>:varName ??
-
-
- > Final question: all this still doesn't answer my question: why
- >isn't AS using my 'aete'? stuff like "on myEventName" *still*
- >doesn't work, although manually saying "on <<event ABCDabcd>>" *does*.
- >The paramater problems clearly indicates that AS is *not* referring
- >to my 'aete' for appropriate vocabulary. Why not?
-
- The commands and objects available to AppleScript come from AS itself as
- well as the Scripting Additions that are installed. The aete resource in
- your application only defines the events and objects that your
- *application* can handle. In other words, in tell application
- "myApp"...end tell routines. Using the "on <<event ABCDabcd>>...end
- <<event ABCDabcd>>" form of a handler in your script allows events to be
- passed to your *script* and the appropriate handler. It is a lower-level
- way of sending and receiving AppleEvents (I think--someone correct me if
- I'm wrong). You can actually send events to the Finder (7.0) from AS this
- way.
-
- If you want AS to be able to handle the "on myEventName" type handlers, I
- suspect you will have to write it into a Scripting Addition.
-
- Lee.
-
- Lee K. Hoong
- Dept. of Chemistry, Emory University
- Internet: lhoong@unix.cc.emory.edu | America On-line: LHOONG
- Disclaimer: I speak for myself only, not for Emory University
- =========================================================================
- Date: Tue, 1 Mar 1994 15:22:10 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Evan Kahn <elkahn@STUDENTS.WISC.EDU>
- Subject: FrontMost
-
- Could someone please send me some info about FrontMost? Is there a demo of
- it, and is there a way to get it without buying the developer's kit?
-
- Thanks in advance....
-
-
-
- *****************************************************************************
- _____ _ _ __
- | ____| | | | | / / Evan L Kahn
- | |__ | | | | / / University of Wisconsin
- | __| | | | |< < DoIT - Depratment of Information and Technology
- | |___ | |___ | | \ \ elkahn@students.wisc.edu
- |_____| |_____| |_| \_\ ekahn@vms3.macc.wisc.edu
-
- "Curiouser and curiouser............"
-
- *****************************************************************************
- =========================================================================
- Date: Tue, 1 Mar 1994 15:31:41 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: Interfaces for scripts
- In-Reply-To: Your message of "17 Feb 94 21:04:00 GMT."
- <761520312.9866225@AppleLink.Apple.COM>
-
- Uncle Dave perhaps you could help Evan out?
-
- >Could someone please send me some info about FrontMost? Is there a demo of
- >it, and is there a way to get it without buying the developer's kit?
- >
- >Thanks in advance....
-
-
- pf
- =========================================================================
- Date: Tue, 1 Mar 1994 12:54:26 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Evan Kahn <elkahn@STUDENTS.WISC.EDU>
- Subject: Script sources
-
- Hi!
- I am new to this server and to scripting in general. Could someone
- please tell me where else I can find information and software (scripting
- additions, ftp, other servers, etc) for scipting on the mac?
-
- Thanks in advance....
-
-
-
-
- *****************************************************************************
- _____ _ _ __
- | ____| | | | | / / Evan L Kahn
- | |__ | | | | / / University of Wisconsin
- | __| | | | |< < DoIT - Depratment of Information and Technology
- | |___ | |___ | | \ \ elkahn@students.wisc.edu
- |_____| |_____| |_| \_\ ekahn@vms3.macc.wisc.edu
-
- "Curiouser and curiouser............"
-
- *****************************************************************************
- =========================================================================
- Date: Tue, 1 Mar 1994 17:06:17 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Denis Simard <simardde@ERE.UMONTREAL.CA>
- Subject: Re: Script sources
- In-Reply-To: <199403012152.AA15244@condor.CC.UMontreal.CA> from "Evan Kahn" at
- Mar 1, 94 12:54:26 pm
-
- Evan Kahn wrote:
- >
- > Hi!
- > I am new to this server and to scripting in general. Could someone
- > please tell me where else I can find information and software (scripting
- > additions, ftp, other servers, etc) for scipting on the mac?
- >
-
- Try this ftp site: gaea.kgs.ukans.edu.
-
- Good Luck!
-
- Denis
-
- *****************************************************************************
- DENIS SIMARD Universite de Montreal
- (simardde@ere.umontreal.ca) Etudes cinematographiques
- *****************************************************************************
- =========================================================================
- Date: Tue, 1 Mar 1994 16:25:18 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Tim Keanini <blast@CRL.COM>
- Subject: handling the error?
-
- Hello Frontier People,
-
- TITLE: Can I handle this error myself?
- (in version 2.0 or 3.0)
-
- I am checking my silly network for people who don't use passwords.
- I simply use the file.mountServerVolume verb and if it can mount with ""
- in the password field I call them up and invite then to my meeting on
- network security.:-0 It is a great meeting by the way.;-)
-
- OK, here is the problem though,
- it will return true if and is mounted successfully;
- it will return a ERROR if the username or password is invalid. BUMMER!
- I wish it returned false if you got the password wrong.
-
- I would like to do this if I could but I guess I cant.
- I have 3.0 but I have not installed it, I am installing it right now as
- I type this.
- Here is some psuedo code of what I am talking about.
-
- if (file.mountServerVolume (netPath, username, ""))
- // print the username to a file.
- // "" for the password is a no no.
- else
- // print the name and say that it has been checked.
-
- Any help on this would be great.
-
- When I am done with this, when it become a script and not a hack I will
- up load it to the site so that all of you can check your nets for these
- people who dont use passwords.
-
- Tim Keanini <blast@crl.com>
-
- beeper 415-ILL RAMS
- =========================================================================
- Date: Wed, 2 Mar 1994 08:42:40 +0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Peter N Lewis <peter.lewis@INFO.CURTIN.EDU.AU>
- Subject: Re: Developer question
-
- I'm don't have code, but it's basically a matter of building up AppleEvents
- and sending them. Or you could write a script and the compile and execute
- it.
-
- But a simpler solution might be to write the codes to a disk file, and then
- write a simple applescript script to process the codes file and send them
- to FileMaker.
- Peter.
-
- _______________________________________________________________________
- Peter N Lewis <peter.lewis@info.curtin.edu.au> Ph: +61 9 368 2055
- =========================================================================
- Date: Tue, 1 Mar 1994 20:52:05 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lee K. Hoong" <lhoong@EMORYU1.CC.EMORY.EDU>
- Subject: Re: Developer question
-
- Jim Van Peurse writes:
- >Now I would like to have this same app send the registration numbers to
- >FM Pro to put in a database. I've been a Mac programmer for a number of
- >years now, and have IM 1-6, plus NIM: Text and NIM: IAC, Developer CD's,
- >etc. Can anyone tell me where to get started on the app side of such a
- >project? I suspect it will be pretty simple given the limited scope of
- >the problem. Just stick the number in an AppleEvent and send it to FM
- >Pro (once it's set up correctly anyway).
- >
- >Can anyone offer same code, or a pointer to sources I should read?
-
- Filemaker Pro 2.x comes with a Db that has some information on the
- AppleEvents and Objects that it supports. The Db was recently upgraded
- with the release of FMP 2.1v2 and may be a good starting point for you...?
-
- Lee.
-
- Lee K. Hoong
- Dept. of Chemistry, Emory University
- Internet: lhoong@unix.cc.emory.edu | America On-line: LHOONG
- Disclaimer: I speak for myself only, not for Emory University
- =========================================================================
- Date: Wed, 2 Mar 1994 03:01:34 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Chris Brannon <cbbst+@PITT.EDU>
- Subject: Problem with SITcomm AS
-
- Whenever I ty using a script that includes the Send File command in
- SITcomm, my machine crashes. An example of the last script I tried is
- below.
-
- I drop into macsbug, and this is what I see (I have no idea what this means)=
- :
-
- Bus error @ 40818B4A _GetWRefCon+0008
- While reading long word from 802704D8 in user data space.
-
- Any ideas? Could it be an extension conflict (I run a whole mess of them).
-
- The script:
-
- tell application "SITcomm=81"
- activate
- Send Text "rz -y" & return
- Send Files {alias "Earth:Save =9F:Graduate Work:2030:2030 Paper #1:p=
- .c"}
- end tell
-
-
- Regards,...Chris
- ---------------------------------------------------------------------------
- Christopher B. Brannon University of Pittsburgh
- cbbst+@pitt.edu Political Science
- =========================================================================
- Date: Wed, 2 Mar 1994 02:03:22 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: handling the error?
-
- At 16:25 3/1/94 -0800, Tim Keanini wrote:
-
- >TITLE: Can I handle this error myself?
- > (in version 2.0 or 3.0)
-
- >I am checking my silly network for people who don't use passwords.
- >I simply use the file.mountServerVolume verb and if it can mount with ""
- >in the password field I call them up and invite then to my meeting on
- >network security.:-0 It is a great meeting by the way.;-)
- >
- >OK, here is the problem though,
- >it will return true if and is mounted successfully;
- >it will return a ERROR if the username or password is invalid. BUMMER!
- >I wish it returned false if you got the password wrong.
-
- Starting with Frontier 2.0 you can use the try...else... construct with any
- verb which might produce an error, in order to do something about the
- error. See the DocServer page for "Try" for information.
-
- try
- if (file.mountServerVolume (netPath, username, ""))
- // print the username to a file.
- // "" for the password is a no no
- else
- // this is a "good" user. You don't need the else if there's nothing
- // to be done here
-
- beeper 415-ILL RAMS
-
- beep!
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- "This is the network of our disconnect"
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Wed, 2 Mar 1994 12:16:46 GMT0BST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Alistair G. Lowe-Norris" <agl1@LEICESTER.AC.UK>
- Subject: ISBN of Complete AppleScript Handbook
-
- Can someone email it to me please.
-
- Thanks.
-
- Alistair.
- --
- ---------------------------------------------------------------------------
- | Alistair G. Lowe-Norris, Systems Programmer UK:agl1@uk.ac.leicester |
- | Computer Centre, Leicester University, Non-UK:agl1@leicester.ac.uk |
- | University Road, Leicester LE1. 7RH., U.K. |
- | |
- | UK Tel: (0533) 522250 Fax: (0533) 525027 |
- | Non-UK Tel: +44 (533) 522250 Fax: +44 (533) 525027 |
- ---------------------------------------------------------------------------
- =========================================================================
- Date: Wed, 2 Mar 1994 08:45:28 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: MacPPP osaxen
-
- Hi folks,
-
- I've just placed a new osax from Mark Alldritt in
- gaea.kgs.ukans.edu/applescript/osaxen/MacPPP.hqx. It allows you to...
- well, let's just let Mark tell us about it....
-
- MacPPP Control is an AppleScript Addition which allows your
- scripts limited control over MacPPP. The addition allows
- you to open and close the PPP link, and to check the state
- (open/closed) of the link.
-
-
- Enjoy.
-
- pf
-
-
-
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
-
- "Bad spellers of the world, untie!"
- --Graffito
- =========================================================================
- Date: Wed, 2 Mar 1994 08:55:01 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jay Martin <jay_martin@POSTOFFICE.AIDT.EDU>
- Subject: Re> FrontMost
-
- If you have AS 1.1, I'd be glad to send you a FrontMost application so you
- can see some of the things it can do. The last time I asked on AppleLink, the
- only way to get it was through the scripter's and developer's kit.
- MacWarehouse has the scripter's kit for $149 (or somewhere close). At the
- bottom of this message, you'll find the "About SDU's Interface Builder" from
- AppleLink.
-
- Jay
- +---------------------------------------+----------------------------------+
- | --------------+ Jay M. Martin | All ideas here are my own and |
- | +---------- | Alabama Industrial | in no way reflect my employer's. |
- | | ----------+ Development Training | martin@aidt.edu |
- | +---------------------------------- | (But what do they know?) |
- +---------------------------------------+----------------------------------+
-
- ------ From: Macintosh Scripting Systems, Mar 1, 1994 ------
-
- Could someone please send me some info about FrontMost? Is there a demo of
- it, and is there a way to get it without buying the developer's kit?
-
- Thanks in advance....
-
- ----------------------------------------------------------------------------
- Overview
-
- Frontmost is the interface processor for AppleScript(tm) It lets you create
- complete Macintosh(r) applications from scripts. Using Frontmost and
- AppleScript,
- you can integrate desired functions from any scriptable program into one
- double-clickable application, with an interface customized to your needs.
-
- Frontmost's interactive, object-oriented tools let you design applications
- that
- are as simple or as sophisticated as you need. You can make a simple dialog,
- or
- build a multiple-window application with custom menus. You begin an
- application
- by laying out the windows and menus that you will need. You can then import
- pictures, icons, or movies. Finally, you write only the scripts necessary to
- make the interface and the other scriptable programs work together. The
- integrated WYSIWYG editing and execution environment gives you instant
- feedback. It fully supports the incremental design, development, and testing
- of
- even the most complex applications. There's no need to leave Frontmost to try
- out your designs.
-
- In addition to its power and control over details, Frontmost makes getting
- started easy: Every interface element automatically behaves as you'd expect,
- even without scripting. And when you do need to write scripts, convenient
- menus
- enter AppleScript statements for you. The "Revert" and "Undo" commands let
- you
- back out of mistakes and experiments. Test-fly your scripts as you think of
- them in the handy command window.
-
- Frontmost's combination of simplicity and flexibility allows you to quickly
- deliver professional applications with all the eloquence, subtlety, and power
- of the the Macintosh user interface.
-
- -----------------------------------------------------------------------------
-
- Features (>>) and Benefits (++):
-
- >> Standard windows, menus and all other Macintosh interface elements are
- supported, all with their standard default behaviors.
- ++ Create applications having standard appearances and behaviors with minimum
- effort.
-
- >> Projects compile into stand-alone, double-clickable applications.
- ++ Distribute commercial quality applications that look and feel professional
- to your clients.
-
- >> Supports all AppleScript commands and access to all scriptable
- applications.
- ++ Integrate the best parts of other programs into a single custom
- application,
- with an integrated interface.
-
- >> AppleScript is an open, standard environment which allows you to access
- just
- the parts of a scriptable application that you need.
- ++ Grow your program's capabilities with every new scriptable application.
-
- >> Frontmost is fourth generation software, based on interface tools that
- have
- been shipping since 1989.
- ++ Rely on a proven, known technology that has been upgraded to provide
- leading
- edge capabilities.
-
- >> Fully integrated support for color.
- ++ Use the full expressive power of color.
-
- >> Integrated design and runtime environment.
- ++ Develop and try out applications incrementally, for speed and accuracy.
-
- >> Graphical design tools to draw interface elements.
- ++ Work in an intuitive, WYSIWYG editing environment.
-
- >> Pictures and icons can be imported from any file or application.
- ++ Use existing graphics, or use graphics created with any application.
-
- >> Supports scriptable "hot-text" (words in text used as buttons).
- ++ Create "hypertext" linkages between data and interface elements.
-
- >> Accepts "plug-in" menu, list and control definition resources.
- ++ Extend the number and variety of interface elements (using C, Pascal or
- assembly code).
-
- >> Design-time and run-time access to all properties, contents and behaviors
- of
- all interface elements.
- ++ Customize the appearance and behavior of any element of an application.
-
- -----------------------------------------------------------------------------
-
- Techinical Specifications
-
- System Requirements
- o A 68020 or later processor, 4MB of RAM, a hard disk, System Software 7.0.1
- or
- later and AppleScript 1.1 or later.
-
- Capacities
- o Up to 9 projects open at once; any number of windows per project; any
- number
- of window items per window; any number of menus and menu items; up to
- 32,767
- characters per script for each project, window and window item.
-
- Interface
- o Graphical tools to draw all interface elements.
- o Copy and paste all design elements, scripts.
- o Import pictures and icons from any file.
- o Pixel and grid positioning and sizing.
- o Undo, redo and revert projects.
- o Easily set properties of all design elements.
- o Message window for commands.
- o Instant "play" of all interface elements.
- o Incremental application design, testing.
- o Popup references for messages, properties.
- o Find window items by name, index or ID.
- o In scripts: find, find next, find in next script.
- o Supports extended keyboard functions.
- o Create your own design and editing tools.
- o Icons: finder and color.
- o Pictures: standard formats; fixed or scrolling.
-
- Design Elements
- o All interface elements have standard default behaviors and appearances.
- o RGB colors for all interface elements.
- o Window styles: standard document; modal dialog; floating windoid (palette).
- o Buttons: push, radio; checkboxes; icon, animated and picture buttons; radio
- button groups.
- o Lists: plain and styled text; icons; pictures; multi-column; draggable;
- multi-selection.
- o Text: editable or not; wrapped or not; font, style, color control; key
- filters; scrolling.
- o Popups: text, icon, picture, color palettes.
- o Gauges: scrollbar, progress bars, counter.
- o Movies: QuickTime format.
- o Scrolling panes: can contain any other items.
- o Drawn graphics: lines and rectangles.
- o Menus: standard and application-specific.
-
- Scripting
- o Script every project, window, window item.
- o Any number of scripts open at one time.
- o Supports all of AppleScript.
- o Instant "play" of scripts and commands.
- o Control all properties of all interface items.
- o Fully object-oriented.
- o Keystroke and click interception.
- o Scriptable interception and control of all window behaviors-open, close,
- zoom, etc.
- o Interception and control of all window item behaviors-clicking, scrolling
- and
- so forth.
- o Fully scriptable menus and menu items.
- o Creates stand-alone scriptable applications.
-
- Developer
- Software Designs Unlimited Inc. 919/968-4567
- 1829 East Franklin Street, Suite 1020
- Chapel Hill, NC 27514-5861
- 919/968-4576 fax AppleLink "SDU"
-
- Availability: Now
- Sold as part of the AppleScript Scripter's Kit.
- =========================================================================
- Date: Wed, 2 Mar 1994 09:12:38 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Scripting SITcomm
-
- I've just placed a stack on gaea that provides some help for scripting
- SITcomm. You'll find it in /applescript/docs/sitcommstack.cpt.hqx.
-
- pf
-
-
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
-
- "Bad spellers of the world, untie!"
- --Graffito
- =========================================================================
- Date: Wed, 2 Mar 1994 09:22:13 CST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Tom Donovan <donovan@COVIS.NWU.EDU>
- Subject: Re: MacPPP osaxen
-
- >I've just placed a new osax from Mark Alldritt in
- >gaea.kgs.ukans.edu/applescript/osaxen/MacPPP.hqx. It allows you to...
- >well, let's just let Mark tell us about it....
- >
- >MacPPP Control is an AppleScript Addition which allows your
- >scripts limited control over MacPPP. The addition allows
- >you to open and close the PPP link, and to check the state
- >(open/closed) of the link.
- >
-
- Is there one for us MacSLIP users on the way?? I use Eudora over a SLIP
- connection and would love to be able to script the whole transaction.
-
- Tom
-
- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- Tom Donovan "Perhaps the most universal information trap is the...
- System Administrator trap of forgetting what it's like not to know. The
- CoVis Project minute we know something, we forget what it was like
- Northwestern Univ. not to know it."
- --Richard S. Wurman
- E-mail: donovan@covis.nwu.edu "Information Anxiety"
- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- =========================================================================
- Date: Wed, 2 Mar 1994 08:28:48 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
- Subject: Re: ISBN of Complete AppleScript Handbook
-
- >Can someone email it to me please.
- >
- ISBN 0-679-79148-5
- Random House Publishing
- Danny Goodman
- The Complete AppleScript Handbook
-
- _________________________________________________________________
- Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
- A newly poured 14.4 Kbps information superhighway onramp.
- =========================================================================
- Date: Wed, 2 Mar 1994 10:37:20 CST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Tom Donovan <donovan@COVIS.NWU.EDU>
- Subject: Help! Damaged applet!
-
- When I try to open (in the Script Editor) an applet I wrote, I get the
- message: "Could not read the file because the data is damaged and
- unreadable."
-
- Is there any way to recover it?
-
-
- Desperately,
-
- Tom
-
- NB: With AppleScript, I'm *creating* applications for the first time, and I
- hadn't considered the fact that my back-up software was set to back up
- documents only :'-(
-
-
- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- Tom Donovan "Perhaps the most universal information trap is the...
- System Administrator trap of forgetting what it's like not to know. The
- CoVis Project minute we know something, we forget what it was like
- Northwestern Univ. not to know it."
- --Richard S. Wurman
- E-mail: donovan@covis.nwu.edu "Information Anxiety"
- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- =========================================================================
- Date: Wed, 2 Mar 1994 09:17:56 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Help! Damaged applet!
-
- At 10:37 3/2/94 -0600, Tom Donovan wrote:
-
- >When I try to open (in the Script Editor) an applet I wrote, I get the
- >message: "Could not read the file because the data is damaged and
- >unreadable."
- >
- >Is there any way to recover it?
-
- Well, the only critical part of the file is the 'scpt' resource. With a
- suitably recent and/or suitably set up ResEdit (don't ask...I don't know
- how recent, and I don't remember whether I added something), ResEdit can
- decompile 'scpt' resources and display the resulting text. Copy same, and
- start over.
-
- [Before trying that, make a copy of your bad applet, in case ResEdit tries
- to "fix" the resource fork, and botches the job.]
-
- >NB: With AppleScript, I'm *creating* applications for the first time, and I
- >hadn't considered the fact that my back-up software was set to back up
- >documents only :'-(
-
- That's an excellent point. One which, if you don't mind, I'll share over
- in some of the various scripting areas on CompuServe. It's a little less
- critical for Frontier users, since typically a Frontier DeskTop script has
- a copy retained in the database, but it's still an issue for us, too.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- "This is the network of our disconnect"
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Wed, 2 Mar 1994 09:43:33 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: MacPPP osaxen
-
- At 8:45 3/2/94 -0600, Fred Terry wrote:
-
- >I've just placed a new osax from Mark Alldritt in
- >gaea.kgs.ukans.edu/applescript/osaxen/MacPPP.hqx. It allows you to...
- >well, let's just let Mark tell us about it....
-
- Unfortunately, this file appears to be damaged. No method I have used to
- obtain it produces a usable binhex file, and if the warnings about a bad
- file are ignored, the resulting StuffIt archive fails verification by
- StuffIt.
-
- I've used Anarchie, Fetch, and a plain FTP to my Internet host followed by
- grabbing the file from there via Fetch and also via capturing a cat command
- into a text file. [My Internet host doesn't seem to have mcvert.]
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- "This is the network of our disconnect"
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Wed, 2 Mar 1994 12:02:03 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Lewis <lewis@NETCOM.COM>
- Subject: Re: MacPPP osaxen
-
- >Hi folks,
- >
- >I've just placed a new osax from Mark Alldritt in
- >gaea.kgs.ukans.edu/applescript/osaxen/MacPPP.hqx. It allows you to...
- >well, let's just let Mark tell us about it....
- >
- >MacPPP Control is an AppleScript Addition which allows your
- >scripts limited control over MacPPP. The addition allows
- >you to open and close the PPP link, and to check the state
- >(open/closed) of the link.
- >
- Unfortunately (because I *need* this capability) the .hqx file seems to be
- corrupt. I've downloaded it twice, and it looks normal in an editor, but
- Stuffit Deluxe's BinHex decoder thinks that neither fork could be verified,
- and when I open the archive, Stuffit Deluxe says it's corrupted.
-
- By the way, I'm assuming that controlling it with Frontier should be simple
- too. If it won't be obvious once I get a clean copy, could you tell me how?
- Thanks.
-
- David
-
- ------------------------------------------------------------------------
- David Lewis lewis@netcom.com (408) 439-2374
- =========================================================================
- Date: Wed, 2 Mar 1994 12:28:15 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Ray <daver@NETCOM.COM>
- Subject: Re: MacPPP osaxen
-
- >MacPPP Control is an AppleScript Addition which allows your
- >scripts limited control over MacPPP. The addition allows
- >you to open and close the PPP link, and to check the state
- >(open/closed) of the link.
-
- Any chance of an OSAX that can be used with InterSLIP?
-
- Actually, a more universal solution would be to have an OSAX that can
- check the status of the serial port (in use, not in use) and return
- true or false.
-
- InterSLIP (and I presume MacSLIP and MacPPP) can be launched and connections
- made using a combination of Finder Liaison calls and the AutoType OSAX.
-
- Tell app "Finder Liaison 1.1"
- open (a reference to file (Mac:Comm:InterSLIP 1.0"))
- end tell
- auto type "m" holding "command"
-
- problem is, if the phone line is busy, it exits dialing and InterSLIP
- doesn't have an auto dial feature. Applescript could be used to autodial if
- an osax existed to detect the serial port status.
- Call it "serial":
-
- Global i
- set i to 1
- On open
- if 1 = 1 then
- Tell app "Finder Liaison 1.1"
- open (a reference to file (Mac:Comm:InterSLIP 1.0"))
- end tell
- auto type "m" holding "command"
- set i to i + 1
- else if i = 2
- if serial is false then
- auto type "m" holding "command"
- else
- quit
- end if
- end if
- return 10
- end open
-
- Comments?
-
- Dave Ray
- daver@netcom.com
- =========================================================================
- Date: Wed, 2 Mar 1994 15:50:49 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: lic@NEXTWORK.ROSE-HULMAN.EDU
- Subject: help ?
-
- I am the new user of AppleScript.
- 1) When I used "set" or "copy" command with patterns, I got an error
- message which was "Access not allowed".
- 2) I also can not get the "position" properity of "Scriptable Text
- Editor".
- There are also several futures I can not obtain from my "Script Editor" which
- comes with the system 7, such as "date", "weekday" ... properities of the
- "date".
-
- Can anyone give me some clues about it.
-
- -- Chong
- -- lic@nextwork.rose-hulman.edu
- =========================================================================
- Date: Wed, 2 Mar 1994 14:37:27 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Leonard Rosenthol <leonardr@NETCOM.COM>
- Subject: Re: MacPPP osaxen
-
- At 12:28 PM 3/2/94 -0800, David Ray wrote:
- >>MacPPP Control is an AppleScript Addition which allows your
- >>scripts limited control over MacPPP. The addition allows
- >>you to open and close the PPP link, and to check the state
- >>(open/closed) of the link.
- >
- >Any chance of an OSAX that can be used with InterSLIP?
- >
- A scriptable application that can control InterSLIP has been
- available (along with full source) at netcom.com:pub/leonardr/Hacks.
-
- Leonard
-
- -----------------------------------------------------------------------------
- Leonard Rosenthol Internet: leonardr@netcom.com
- Director of Advanced Technology AppleLink: MACgician
- Aladdin Systems, Inc. GEnie: MACgician
- =========================================================================
- Date: Thu, 3 Mar 1994 23:31:20 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Leonard Rosenthol <leonardr@NETCOM.COM>
- Subject: Re: Problem with SITcomm AS
-
- >Whenever I ty using a script that includes the Send File command in
- >SITcomm, my machine crashes. An example of the last script I tried is
- >below.
- >
- We have found this problem (it doesn't happen all the time), and it
- is fixed for our forthcoming 1.0.1 update. Sorry about that!
-
- Leonard
-
- -----------------------------------------------------------------------------
- Leonard Rosenthol Internet: leonardr@netcom.com
- Director of Advanced Technology AppleLink: MACgician
- Aladdin Systems, Inc. GEnie: MACgician
- =========================================================================
- Date: Thu, 3 Mar 1994 08:16:30 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "E.J. Draper" <draper@UTMDACC.MDA.UTH.TMC.EDU>
- Subject: Re: MACSCRPT Digest - 1 Mar 1994 to 2 Mar 1994
-
- >Any chance of an OSAX that can be used with InterSLIP?
-
- I don't know of an OSAX, but Leonard Rosenthol's InterSLIP/AE application
- will allow you to drive InterSLIP from scripts. InterSLIP/AE should ber
- available from most of the larger ftp sites...
-
-
-
-
-
-
-
-
- |E|J- ED DRAPER
- rEpar|D|<- Radiologic/Pathologic Institute
- The University of Texas M.D. Anderson Cancer Center
- draper@utmdacc.mda.uth.tmc.edu
- =========================================================================
- Date: Thu, 3 Mar 1994 09:06:55 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: MacPPP control & stuff
-
- As most of you have gathered, MacPPP was corrupted somehow. Mark sent me a new
- copy last night which I downloaded to my Mac and tested. It is now on
- gaea.kgs.ukans.edu in /applescript/osaxen/MacPPPControl.sit.hqx.
-
- I have also put a copy of Leonard's InterSLIP_AE in
- /applescript/scriptableapps/InterSLIP_AE1.0b1.sit.hqx (is it an app?).
-
- As a side note, whenever I make changes or add files to the directories, I
- update the /applescript/00index file. Those of you forced to get files via
- email can always find the correct path in it.
-
- Sorry for all of the bother.
-
- pf
-
-
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
-
- Eventually people realized that the Information Superhighway was
- essentially CB radio, but with more typing.
- -Dave Barry, "The '90s, Looking Back at the Interactive Salad Bar"
- =========================================================================
- Date: Thu, 3 Mar 1994 09:38:12 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Gina Carranza <gina_carranza1@QMGATE.FNAL.GOV>
- Subject: Installer Makers
-
- From the Desk of...
- 3/3/94
- Georgina E. Carranza 9:32 AM
- Installer Makers
- Does anyone know of a product that creates Macintosh installers? I am in the
- process of evaluating software from Aladdin called InstallerMaker, but I would
- like to evaluate other products that are also InstallerMakers and compare them.
- I have not been successful in finding other products, can someone help me with
- this matter.
- Thank you,
- Gina.
- =========================================================================
- Date: Thu, 3 Mar 1994 09:18:34 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Brian Gaines <gaines@FSC.CPSC.UCALGARY.CA>
- Subject: Re: Re(5): Event handlers: how?
-
- > Lee K. Hoong writes
- >
- > If you want AS to be able to handle the "on myEventName" type handlers, I
- > suspect you will have to write it into a Scripting Addition.
- >
-
- If you calling a script as *part* of your application, eg through a
- an OSAExecuteEvent call, and you have defined an extra event class in
- the aete of your application (or respond to the get aete event with one)
- then you can use your defined terminology as the name of a handler
- for your event class. I have a number of such events defined for actions
- generated within my own windows and sent to scripts attached to those windows.
-
- b.
-
-
- Brian Gaines Knowledge Science Institute, University of Calgary
- gaines@cpsc.ucalgary.ca Calgary, Alberta, Canada T2N 1N4
- =========================================================================
- Date: Thu, 3 Mar 1994 12:00:42 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Michael Kilgore <mak@TICIPA.WORKS.TI.COM>
- Organization: Texas Instruments, Inc.
- Subject: Re: Re(5): Event handlers: how?
-
- Mark Aiken writes:
- > Is there another manual notation like the <<event ABCDabcd>>
- >notation that could use to indicate the keyword of my other paramater?
- >Something like
- >
- >on <<event ABCDabcd>> of directParam <<parameter 1234>>:varName ??
-
- Perhaps something like
- on <<event FoooGtVC>> given <<property astr>>:asString, <<property ...>>:...
- if asString then ...
- end <<event FoooGtVC>>
- in your script and
- tell app "yourApp" to <event FoooGtVC> given <property astr>:true, ...
- in another app or script? This is so forgiving that you don't need 'GtVC'
- or 'astr' defined in the 'aete' resource (or an 'aete' resource at all, for
- that matter); and 'yourApp' doesn't even need 'Fooo' as its signature.
-
- I have noticed that Script Editor also rewrites
- on <<event FoooGtVC>> (x, y)
- as
- on <<event FoooGtVC>> {x,y}
- So a desperate measure might be to pass a list as a pattern parameter; but
- that seems even uglier than the preceding.
-
- (On the other hand, I note that the AS Language Guide claims that there is
- no way to do optional parameters; so it evidently can't support the full
- generality of AE in this regard.)
-
- --
- Michael Kilgore Texas Instruments, Inc.
- (214) 917-2219 mak@works.ti.com
- =========================================================================
- Date: Thu, 3 Mar 1994 12:31:52 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Sean Elfstrom <selfstro@NEPTUNE.CS.TRINITY.EDU>
- Subject: Help
-
- I am having problems with the following script:
-
- on run
- try
- set myFiles to finder selection
- on error
- return
- end try
- set result to myFiles
- open myFiles as list
- end run
-
- on open fileList
- repeat with fileName in fileList
- convert(fileName)
- end repeat
- end open
-
- on convert(theFile)
- tell application "JPEGView"
- open {theFile as alias}
- end tell
-
- This is with AppleScript 1.0, and Jon's Commands 1.0 for the finder
- selection. When I run this, it gives me the following error:
-
- Can't get file "<file name>".
-
- Any ideas on what I'm doing wrong?
-
- Also, I get errors of type -1728 sometimes. What does this mean?
-
- Thanks.
-
- --
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- | Sean Elfstrom | Trinity University |
- | selfstro@tusol.cs.trinity.edu | 715 Stadium Dr. #707 |
- | NeXTMail: selfstro@oberon.cs.trinity.edu | San Antonio, TX 78212-7200 |
- | **PGP 2.3 Signature available via finger** | (210)737-4728 McLean 124 |
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- =========================================================================
- Date: Thu, 3 Mar 1994 12:49:58 CST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Taylor Leaming H3-283 <leamingt@TOBOR.SPS.MOT.COM>
- Subject: InterSLIP/AE source...can't get download it
-
- > I don't know of an OSAX, but Leonard Rosenthol's InterSLIP/AE application
- > will allow you to drive InterSLIP from scripts. InterSLIP/AE should ber
- > available from most of the larger ftp sites...
-
- For some reason, I can't seem to successfully download the SOURCE CODE for
- the InterSLIP/AE app on netcom.com.
-
- Could someone please email me a GOOD binhex copy of this file? Thanks!
-
- Taylor
-
-
- +-----------------------------------------------------------------+
- | Taylor Leaming leamingt@tobor.sps.mot.com |
- | Motorola, Inc. |
- | Austin, Texas (512) 891-6211 |
- +-----------------------------------------------------------------+
- =========================================================================
- Date: Thu, 3 Mar 1994 12:05:13 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Stephanie Sandberg <sls@FRAME.COM>
- Subject: Re: Installer Makers
-
- 1.) Formerly Salient and Fifth Generation Systems, now Symantec has an
- installer
- package that you can customize, that uses the DiskDoubler compression tools. I
- currently use this for the products we release, which contain over 200 files.
-
- 2.) Apple has their own installer package. And there are several companies that
- sell tools to use in constructing scripts for the apple installer that are
- supposed to simplify the process.
- I've heard their newest release of the installer is really hot, but haven't
- had much time to look into it myself.
-
- Steph
-
- > From the Desk of...
- > 3/3/94
- > Georgina E. Carranza 9:32 AM
- > Installer Makers
- >Does anyone know of a product that creates Macintosh installers? I am in the
- >process of evaluating software from Aladdin called InstallerMaker, but I would
- >like to evaluate other products that are also InstallerMakers and compare them.
- > I have not been successful in finding other products, can someone help me with
- >this matter.
- >Thank you,
- >Gina.
- =========================================================================
- Date: Thu, 3 Mar 1994 15:45:01 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Gordon Watts -- U of Rochester <GWATTS@WHCDF.FNAL.GOV>
- Subject: Re: InterSLIP/AE source...can't get download it
-
- Hi,
- Yes. I had that problem with Fetch too. If you turn off binhex decoding and
- download, and then use stuffit (figures, eh? :)) to unbinhex it you can get in
- it. I guess something is a little marginal with the binhex. I didn't
- investigate further, so it could be something else.
-
- Cheers,
- Gordon.
- =========================================================================
- Date: Thu, 3 Mar 1994 18:23:41 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: INRA000 <INRA@MUSICB.MCGILL.CA>
- Subject: Re(6: Event handlers: how?
- In-Reply-To: In reply to your message of WED 02 MAR 1994 21:18:34 EST
-
- >If you calling a script as *part* of your application, eg through a
- >an OSAExecuteEvent call, and you have defined an extra event class in
- >the aete of your application (or respond to the get aete event with one)
- >then you can use your defined terminology as the name of a handler
- >for your event class. I have a number of such events defined for actions
- >generated within my own windows and sent to scripts attached to those windows.
-
- Is this perhaps new with AS1.1? I've confirmed that doing an
- OSACompile from within my app before OSADoEvent does nothing to help
- AS interpret the script's vocabulary correctly. I'm running AS1.0.
-
- Even so, this means that one *must* provide script-editing windows
- and other such support within one's app, since the Script Editor can't
- compile such handlers properly. This is somewhat of a drag.
-
- I've been trying to track down a solution for a little while now,
- and I think I've found the most viable courses of action. I'll post
- a summary of what I've learned tonight -- I have a few more things to
- test.
-
- Mark Aiken
- inra@musicb.mcgill.ca
- =========================================================================
- Date: Thu, 3 Mar 1994 17:10:55 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Ray <daver@NETCOM.COM>
- Subject: Re: InterSLIP/AE source...can't get download it
-
- I had a similar problem with the InterSLIP/AE *application* on ftp.netcom.com
- in pub/leonardr/Hacks. The unix utility "mcvert" reported an error and
- couldn't de-binhex it. However, I downloaded the binhex file and Stuffit
- Expander debinhexed it just fine.
-
- -Dave
- =========================================================================
- Date: Fri, 4 Mar 1994 01:44:13 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: INRA000 <INRA@MUSICB.MCGILL.CA>
- Subject: Re(6): Event handlers: how?
- In-Reply-To: In reply to your message of THU 03 MAR 1994 01:00:42 EST
-
- For those who are interested (This is of limited usefulness unless,
- like me, you're writing an app that benifits from this kind of fun-
- ctionality), here's what I've discovered about writing handlers for
- Apple Events in AppleScript:
-
- -- The Script Editor consults 'aete' resources only when compiling
- 'tell' commands. As a result, it's difficult (not not impossible, see
- below) to write handlers with the syntax "on myEvent...". The manual
- workaround is:
-
- on <<event ABCDabcd>> of directParam given <<property efgh>>:otherParam.
-
- This creates a handler for the Apple Event of class ABCD and of
- ID abcd, with the direct object parameter being assigned to directParam
- and another parameter of keyword type efgh being assigned to otherParam.
-
- -- At least two people have told me that compiling a script from
- within an application with a valid 'aete' should cause AS to refer to
- the app's vocabulary when compiling event handlers. I can't seem to get
- this to work, but my immediate take on this is that it implies that
- one must write script editing facilities into one's app to get this
- functionality.
-
- -- Partial/possible solution: AS always refers to OSAXen 'aete's
- when compiling ANYTHING. I checked tonight that creating an OSAX with
- the appropriate 'aete' resource will cause the Script Editor to cor-
- rectly compile handlers of the form
-
- on myEvent of DirectParam paramLabel anotherParam
-
- Note that you can use the human-language paramLabel (the name of
- the parameter you wish to assign to otherParam) and the real name of
- the event.
-
- This is somewhat of a kludge, however, and I'm debating whether it
- would be such a hot idea to ship an app with an "enabler" OSAX that
- provides the 'aete' for such attractive-looking syntax, or whether that
- would contravene some Thought Police commandment. Thoughts on this
- are welcomed.
-
- That's it. I hope this helps someone -- in particular, it took me
- a while to unearth the <<property 1234>> syntax.
-
- Mark Aiken
- inra@musicb.mcgill.ca
- =========================================================================
- Date: Thu, 3 Mar 1994 14:07:31 PDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Adam C. Engst" <ace@TIDBITS.COM>
- Organization: TidBITS
- Subject: SITcomm crashing on Send File
-
- In Regards to your letter <199403031845.AA16437@nwnexus.wa.com>:
- > Whenever I ty using a script that includes the Send File command in
- > SITcomm, my machine crashes. An example of the last script I tried is
- > below.
- >
- > I drop into macsbug, and this is what I see (I have no idea what this means)=
- > :
- >
- > Bus error @ 40818B4A _GetWRefCon+0008
- > While reading long word from 802704D8 in user data space.
- >
- > Any ideas? Could it be an extension conflict (I run a whole mess of them).
-
- It certainly might be an extension conflict, but I've seen exactly
- the same behavior. Interestingly, I get the crash _after_ the file
- sends, and the file transfers OK. I just have to log on again (to
- BIX in this case) and finish dealing with the file. I don't see the
- same behavior manually.
-
- I've already reported this to Leonard...
-
- cheers ... -Adam
-
- --
- Adam C. Engst, TidBITS Editor -- ace@tidbits.com -- info@tidbits.com
- Author of The Internet Starter Kit for Macintosh -- tisk@tidbits.com
- =========================================================================
- Date: Sat, 5 Mar 1994 01:08:00 JST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: =?ISO-2022-JP?B?GyRAQD44NiEhOTA8IxsoSg==?=
- <PBB00464@NIFTYSERVE.OR.JP>
- Subject: unsubscribe
-
- Please remove my ID from your list.
- Maybe I have become a stranger in INTERNET.
- I will take part in after some learning.
-
- Hiroji Nishihara / PBB00464@niftyserve.or.jp
- =========================================================================
- Date: Thu, 3 Mar 1994 17:30:28 MST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mel Walker <Mel_Walker@NOVELL.COM>
- Subject: Different Dialects, Same Script - How? Possible?
-
- Field-1:
- Is it possible (with currently published information) to create a different
- dialect for AppleScript, and still have it compile/parse to the same end result
- as AppleScript does now? Does the spec for the format of script resources exist
- anywhere but in the depths of Apple?
-
- The advantage of this, as I see it, would be that this component would parse and
- compile source code, and the AppleScript component could handle the executing
- part. It might save work on the programmer's part.
-
- --Mel Walker
- mwalker@novell.com
-
-
- ---Begin attached file "QMFORM.FRM".Z---
-
- begin 666 "QMFORM.FRM".Z
- M'YV048Q(:1*E"9(I ,@H*&CDR4 7 IMD<(,( (LF[ !,T 0%P+Q0\ #4V0(
- M@ 8;[@ ( ""#99,I1XJ4G$FSIDT 7#JO,ESIJ8F$7L*+9FSZ%">:!H.O&EC
- M:%.C1WDVG1E 1(!X*@&(F:DG0#L !68. , @ *":?(AZN IV)@$ "0"XV)G$
- M#)6M-ED,U0LU:MZ$!YK4D=,B"!PX "@H: (%BA,D1X1 "9($ ),Y<W+2S/E@
- %2(2=)0$,
-
- end
-
- ---End attached file "QMFORM.FRM".Z---
- =========================================================================
- Date: Fri, 4 Mar 1994 12:28:22 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Evan Kahn <elkahn@STUDENTS.WISC.EDU>
- Subject: AS 1.1
-
- Hello everyone!
- I was just wondering where I could download a copy of AppleScript
- 1.1. All I have is 1.0.
-
- (PS - Just don't tell me that I have to buy it.... )
-
-
-
- *****************************************************************************
- _____ _ _ __
- | ____| | | | | / / Evan L Kahn
- | |__ | | | | / / University of Wisconsin
- | __| | | | |< < DoIT - Depratment of Information and Technology
- | |___ | |___ | | \ \ elkahn@students.wisc.edu
- |_____| |_____| |_| \_\ ekahn@vms3.macc.wisc.edu
-
- "Curiouser and curiouser............"
-
- *****************************************************************************
- =========================================================================
- Date: Fri, 4 Mar 1994 10:35:30 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Lewis <lewis@NETCOM.COM>
- Subject: MacPPP OSAX under Frontier's FinderMenu
-
- Ok, I've gotten a good copy of MacPPP Control. I've installed it into
- Frontier using the Load OSAX droplet. The script fragment
-
- if PPPOpened () {
- closePPP ()
- }
-
- works fine if executed from Frontier (placed into a script which is
- executed from the Quick Script window). If called from FinderMenu, however,
- it will hang the machine if the closePPP () clause is executed. I've tried
- various combinations of clock.waitSeconds inserted before and after the
- call, and I've also tried Frontier.bringToFront before the fragment is
- executed. Nothing so far helps. Any assistance would be appreciated.
- Thanks.
-
- David
-
- ------------------------------------------------------------------------
- David Lewis lewis@netcom.com (408) 439-2374
- =========================================================================
- Date: Fri, 4 Mar 1994 13:20:38 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: AS 1.1
- In-Reply-To: Your message of "Fri,
- 04 Mar 94 12:28:22 CST." <9403041914.AA03073@lks.lks.csi.com>
-
- > Hello everyone!
- > I was just wondering where I could download a copy of AppleScript
- > 1.1. All I have is 1.0.
- >
- > (PS - Just don't tell me that I have to buy it.... )
-
- I'll let someone else tell you that you have to buy it from MacConnection,
- MacWarehouse or APDA. :-/
-
- pf
-
-
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
-
- "Bad spellers of the world, untie!"
- --Graffito
- =========================================================================
- Date: Fri, 4 Mar 1994 12:41:15 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Different Dialects, Same Script - How? Possible?
-
- At 17:30 3/3/94 -0700, Mel Walker wrote:
- >Is it possible (with currently published information) to create a different
- > dialect for AppleScript, and still have it compile/parse to the same end
- >result
- > as AppleScript does now? Does the spec for the format of script resources
- >exist
- > anywhere but in the depths of Apple?
-
- Well, Apple ships English, French, and Japanese dialects with the Developer
- Kit form of AppleScript 1.1. I didn't install the Japanese (having to way
- to tell whether what it does is sensible or not). I have played with the
- =46rench.
-
- tell application "Quill"
- make new document
- end tell
-
- becomes
-
- utilise l'application "Quill"
- cr=E9e autre document
- fin de utilise
-
- [if your mailer doesn't do the quoted stuff, the thing before "autre" is
- "cree" with an accent on the first e']
-
- It's real hard to switch in Script Editor: go into AppleScript
- =46ormattting... under the Edit menu. There's a popup showing all the
- installed dialects. The above change happened instantly when I did that.
- If you compile a script in English and send to to a French Mac, it will run
- fine, and it will appear in French when opened.
-
- I think Inside Mac: IAC includes everything you need to know [except
- afterthoughts which may appear in Tech Notes]. You could create LISP-like
- syntax if you wanted to, probably.
-
-
- -------
- Have I missed anything because your mailer doesn't put headers into the
- message which cause my mailer (Eudora) to decode the uucoded (I think it
- is) part of your message?
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- "This is the network of our disconnect"
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Fri, 4 Mar 1994 13:30:55 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Scott Trotter <strotter@NETCOM.COM>
- Subject: Re: AS 1.1
-
- >> Hello everyone!
- >> I was just wondering where I could download a copy of AppleScript
- >> 1.1. All I have is 1.0.
- >>
- >> (PS - Just don't tell me that I have to buy it.... )
- >
- >I'll let someone else tell you that you have to buy it from MacConnection,
- >MacWarehouse or APDA. :-/
- >
- >pf
-
-
- FEI (for everyone's information) I bought the AppleScript Scripter's
- Toolkit earlier this week -- here's what I learned: First, none of the
- local (Portland) retail computer dealers or software stores carried
- AppleScript in any form, not even a normally well-stocked place like
- Computer City. I called the 3 major mail-order outfits (Warehouse,
- Connnection & Zone), and it was out-of-stock everywhere *except*
- MacWarehouse, which had the highest price ($149 + 3). The other 2 places
- weren't expecting a new shipment for about 2 weeks. It didn't occur to me
- to call APDA, but looking in their catalog just now, I only see the
- Software Developers Toolkit, listed for $199 + shipping.
-
- I was also hunting for HyperCard 2.2, which includes the AS 1.1 runtime
- kit. All of the above places, *including* MacWarehouse, were out-of-stock.
-
- I went ahead and bought the Scripter's Toolkit because a) I was in a hurry,
- and b) I wanted Frontmost. But Evan raises an interesting point. The AS 1.0
- runtime components are easily available from a variety of sources such as
- System 7 Pro, The Tao of AppleScript, the Developer's CDs and other Apple
- support CDs. How does Apple expect those people who've obtained a
- legitimate copy of AS 1.0 to upgrade to version 1.1?
-
-
- ======================================================================
- Scott Trotter Desktop Strategies Beaverton, Oregon, USA
- email: strotter@netcom.com fax: 503.641.2983 voice: 503.641.3741
- =========================================================================
- Date: Fri, 4 Mar 1994 16:25:59 CST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Taylor Leaming H3-283 <leamingt@TOBOR.SPS.MOT.COM>
- Subject: Re: AS 1.1
-
- > Hello everyone!
- > I was just wondering where I could download a copy of AppleScript
- > 1.1. All I have is 1.0.
- >
- > (PS - Just don't tell me that I have to buy it.... )
-
- I have heard that it is available with the latest HyperCard for
- developers to distribute....I can't find said package.
-
- If you should get your hands on it, I would like very much to move from
- v1.0 that I have to the v1.1, as well.
-
- Thanks,
-
- Taylor
- =========================================================================
- Date: Fri, 4 Mar 1994 17:11:30 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: AS 1.1
-
- > But Evan raises an interesting point. The AS 1.0
- >runtime components are easily available from a variety of sources such as
- >System 7 Pro, The Tao of AppleScript, the Developer's CDs and other Apple
- >support CDs. How does Apple expect those people who've obtained a
- >legitimate copy of AS 1.0 to upgrade to version 1.1?
-
- Apple doesn't expect this (I think), but people who have Danny Goodman's
- Complete AppleScript Handbook can order an update disk which includes
- AppleScript 1.1 and a discussion of the changes (that is, the changes AS
- 1.1 causes in the book). And perhaps other stuff. To quote Danny:
-
- -------
- Yes, you can order the $4.95 diskette from Random House by phone. It
- contains AS 1.1 runtime software plus: an RTF file with about 50pp more
- book with explanations of 1.1 features and enhancements; a sample Frontmost
- application; the Frontmost runtime extension. Call Random House at
- 800-733-3000 (or 212-572-6045 int'l) and order the AppleScript Handbook
- Update Disk,
- ISBN 0-679-75537-3.
- ---------
-
- There were problems recently with the pricing...they should have been
- ironed out (at least, late last week a Random House VP said they would be
- ironed out this week). Prices which have been charged include $4.75, $4.75
- plus $2 shipping, and $2 shipping (it appears there were multiple SKUs with
- different prices in their order system).
-
- I said owners of the book can order this. But the order people aren't
- demanding proof of ownership ("read the second paragraph on page 300" would
- work, I suppose).
-
- And, I understand that APDA still can be talked out of the $20 "runtime"
- AppleScript package, in 1.1 form. At least, one person reported having
- been able to do so.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- "This is the network of our disconnect"
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Thu, 3 Mar 1994 21:21:51 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jay Hebert <jayh@LAISON.W8HD.ORG>
- Organization: L'AISON - Beverly Hills, Michigan
- Subject: Re(2): Problem with SITcomm AS
-
- Leonard Rosenthal writes, among other things:
-
- > ...our forthcoming 1.0.1 update.
-
- *smile*
-
- Do we know the release date for 1.0.1?
-
- Thanks from a SITComm lover,
- Jay
-
- --
- ==========================jayh@laison.w8hd.org=========================
- Metallica,|| When a man lies he murders / Some part of the world
- To Live ||These are the pale deaths which / Men miscall their lives
- is || All this I cannot bear / To witness any longer
- To Die || Cannot the kingdom of salvation / Take me home
- =======================================================================
- 1) These opinions are mine.-==- 2) Sending me mail gives me
- I'm too self-interested to -==- permission to reproduce it in any form
- speak for anyone else. -==- unless otherwise explicitly stated.
- =========================================================================
- Date: Sat, 5 Mar 1994 00:23:29 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Bob Snyder <snyderra@DUNX1.OCS.DREXEL.EDU>
- Subject: Word Wrapping under AppleScript
-
- Anyone have any code under AppleScript which does word wrapping?
-
- I need to convert a variable without returns into one that is wrapped to
- less than 80 characters. I would think that I could just start at
- character 80 of the paragraph, and move in until I find a space (or if I
- don't, move out from 80 until one is found).
-
- Bob
-
- --
- Bob Snyder N2KGO MIME, RIPEM mail accepted
- snyderra@dunx1.ocs.drexel.edu finger for RIPEM public key
- <A HREF="http://dunx1.ocs.drexel.edu:1972/~snyderra/ras.html">Select Me</A>
- =========================================================================
- Date: Sat, 5 Mar 1994 11:00:54 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Steve Michel <72511.151@COMPUSERVE.COM>
- Subject: AS word wrap
-
- Bob Snyder wanted to know about doing word wrap by AppleScript. Here's a
- handler I wrote in an afternoon, but haven't really tested. If anyone improves
- it, I'd like to see the code.
-
- Call with:
-
- copy wordWrap(1,75,theText) to theText
-
- Steve
-
- to wordWrapText(startChar, lineLength, theText)
- -- Recursively breaks a chunk of text into lines that are each less than
- lineLength long.
- -- It won't make short lines longer!
- copy startChar + lineLength to endChar
- if startChar > length of theText then -- past the end? then unwind recursion
- return ""
- end if
- if endChar > length of theText then -- will we go past the end?
- return characters startChar thru (length of theText) of theText as text
- end if
- if character endChar of theText is space then -- are we going to break on a
- space?
- return (characters startChar thru endChar of theText as text) & return & ~
- wordWrapText(endChar + 1, lineLength, theText)
- else -- not a space, so count backwards
- repeat with x from endChar to startChar by -1
- if character x of theText is in "\r.,!-" then
- return (characters startChar thru (x - 1) of theText as text) & return & ~
- wordWrapText(x + 1, lineLength, theText)
- end if
- end repeat
- end if
- end wordWrapText
- =========================================================================
- Date: Sat, 5 Mar 1994 07:41:00 PST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mark Alldritt <alldritt@WIMSEY.COM>
- Subject: Re: MacPPP OSAX under Frontier's FinderMenu
-
- >Ok, I've gotten a good copy of MacPPP Control. I've installed it into
- >Frontier using the Load OSAX droplet. The script fragment
- >
- > if PPPOpened () {
- > closePPP ()
- > }
- >
- >works fine if executed from Frontier (placed into a script which is
- >executed from the Quick Script window). If called from FinderMenu, however,
- >it will hang the machine if the closePPP () clause is executed. I've tried
- >various combinations of clock.waitSeconds inserted before and after the
- >call, and I've also tried Frontier.bringToFront before the fragment is
- >executed. Nothing so far helps. Any assistance would be appreciated.
- >Thanks.
-
- Humm, I'm no sure what to say. I use MacPPP Control in a series of
- AppleScript script applications which I execute from MenuChoice. I also
- have scripts running from my Scheduler application useing MacPPP Control
- with no trouble.
-
- I don't have Frontier on my system so I can't test with it. I'm willing to
- supply the source for the MacPPP Control OSAX if thet will help you address
- the problem.
-
- -Mark
- =========================================================================
- Date: Sat, 5 Mar 1994 12:59:06 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Richard Millward <rsm@MCS.COM>
- Subject: address for Main Event Software?
-
- Does anybody have contact information for Main Event Software (developers
- of the Scripter development enviroment)? The FAQ doesn't currently have
- it... TIA.
-
- Richard Millward
- MCSNet/Chicago
- rsm@mcs.com
- =========================================================================
- Date: Sat, 5 Mar 1994 13:51:11 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: address for Main Event Software?
- In-Reply-To: Your message of "Sat,
- 05 Mar 94 12:59:06 CST." <9403051859.AA17559@lks.lks.csi.com>
-
- >Does anybody have contact information for Main Event Software (developers
- >of the Scripter development enviroment)? The FAQ doesn't currently have
- >it... TIA.
-
- Main Event's phone number is 202-298-9595.
-
- pf
-
-
-
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
-
- "Bad spellers of the world, untie!"
- --Graffito
- =========================================================================
- Date: Sun, 6 Mar 1994 20:58:01 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Lewis <lewis@NETCOM.COM>
- Subject: Re: MacPPP OSAX under Frontier's FinderMenu
-
- >
- >I don't have Frontier on my system so I can't test with it. I'm willing to
- >supply the source for the MacPPP Control OSAX if thet will help you address
- >the problem.
- >
- >-Mark
-
- Well, I'd be happy to try. I can't make any guarantees, but I'll forward it
- to some of the folks at UserLand if nothing leaps out at me. The only
- danger is that I might learn something.
-
- David
-
- ------------------------------------------------------------------------
- David Lewis lewis@netcom.com (408) 439-2374
- =========================================================================
- Date: Tue, 8 Mar 1994 00:13:59 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Y. Doug Uno" <uno@CS.UIUC.EDU>
- Subject: AppleScript Eudora to Excel
-
- I am trying to collect data from Eudora and make the worksheet of those data
- on Excel. I could handle getting data from Eudora, but Excel seems me very
- choosy. I used "open dictionary", I read "XL4 document" in
- gaea.kgs.ukans.edu.
- But I could not figure out.
-
- My applescript is as follows. Could you help me fill up the Excel part?
-
- ******************************
- tell application "Eudora2.0.1"
- set N to CountElements Mailbox "In" of Mail Folder "" each Message
- repeat with i from 1 to N by 1
- set S to GetData the Sender of Message i of Mailbox "In" of
- Mail Folder ""
- set D to GetData the Date of Message i of Mailbox "In" of
- Mail Folder ""
- set Sub to GetData the Subject of Message i of Mailbox "In"
- of Mail Folder ""
- tell application "Microsoft Excel"
-
- -- I NEED YOUR HELP HERE!
- -- making spreadsheet which have 3 columns
- -- 1st column is for S (sender)
- -- 2nd column is for D (date)
- -- 3rd column is for Sub (subject)
-
- end tell
- end repeat
- end tell
- *****************************
-
- Thanks in advance.
-
- //Doug Uno -- uno@cs.uiuc.edu -- University of Illinois
- =========================================================================
- Date: Tue, 8 Mar 1994 08:05:33 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
- Subject: ClarisWorks support AppleScript?
-
- At $29 for a copy to replace the copy of Claris Resolve that I bought a
- while back, was wondering if ClarisWorks supports AppleScript. Anyone know?
-
- Kee Nethery
-
- _________________________________________________________________
- Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
- Seen on the net: "High Level CIA Person = $1.5 Million,
- Clipper-Chip Escrow Officer = $?"
- =========================================================================
- Date: Tue, 8 Mar 1994 12:04:23 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Herb Schilling <hschilling@LERC.NASA.GOV>
- Subject: Re: ClarisWorks support AppleScript?
-
- >At $29 for a copy to replace the copy of Claris Resolve that I bought a
- >while back, was wondering if ClarisWorks supports AppleScript. Anyone know?
- >
-
- Hello,
-
- Sorry I don't know the answer but I was wondering where you heard about
- the $29 sidegrade ? Thanks.
-
- --
- Herb Schilling NASA Lewis Research Center 21000 Brookpark Road Mail Stop 142-4
- Cleveland Ohio 44135 (216) 433-8955 Fax:(216)433-8000 sshws@convx1.lerc.nasa.gov
- AppleLink: SCHILLING.H
- =========================================================================
- Date: Tue, 8 Mar 1994 10:20:46 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Dennis Gately <dennis_gately@QUICKMAIL.APPLE.COM>
- Subject: Re: ClarisWorks support Appl
-
- RE>ClarisWorks support Appl
- In answer to:
-
- >At $29 for a copy to replace the copy of Claris Resolve that I bought a
- >while back, was wondering if ClarisWorks supports AppleScript. Anyone know?
- >
-
- ClarisWorks 2.0v1 supports the following:
-
- The required AppleEvent Suite
-
- Quit
- Print
- Open Doc
- Open application
-
- A Core Subset, consisting of:
-
- Get Data
- Set Data
-
- & the objects:
-
- Document
- Record
- Field
- Cell
-
- That's what opening ClarisWorks as an AppleScript Dictionary tells me!
- =========================================================================
- Date: Tue, 8 Mar 1994 14:48:58 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jay Martin <jay_martin@POSTOFFICE.AIDT.EDU>
- Subject: Re> Re: ClarisWorks support AppleScript?
-
- Currently, ClarisWorks does not include AS support, but it is planned for the
- next release (according to Claris). Be sure to talk to any Claris people you
- know about Object Model support! The more people ask for it, the better the
- chances are that it'll be implemented quickly.
-
- The $29 sidegrade was announced on America Online (at least that's where I
- found it), and I also just got a letter from Claris in the mail.
-
- ------ From: Macintosh Scripting Systems, Mar 8, 1994 ------
-
- Hello,
-
- Sorry I don't know the answer but I was wondering where you heard about
- the $29 sidegrade ? Thanks.
- =========================================================================
- Date: Tue, 8 Mar 1994 17:45:40 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Network Manager <Network_Manager.NY_Global_UNIX_GW@JPMORGAN.COM>
- Subject: Re: AppleScript Eudora to Excel
-
- >From 10:30 am Mar, 7 through 12 Noon March 8, there was an intermittent
- problem with the software that handles messages between UnixMail and
- MacMail. This problem caused some messages to be sent to an error queue
- instead of to the indicated MacMail or UnixMail recipient(s).
-
- A message from your e-mail account was included in this error queue. If you
- originated this message from UnixMail, it was not delivered to the MacMail
- recipient(s). If you originated this message from MacMail, it was not
- delivered to the UnixMail recipient(s).
-
- We apologize for any inconvenience this software problem has caused you.
-
- New York E-Mail Group.
-
-
- _______________________________________________________________________________
- From: Macintosh Scripting Systems on Tue, Mar 8, 1994 4:50 AM
- Subject: AppleScript Eudora to Excel
- To: Multiple recipients of list MACSCRPT
-
- I am trying to collect data from Eudora and make the worksheet of those data
- on Excel. I could handle getting data from Eudora, but Excel seems me very
- choosy. I used "open dictionary", I read "XL4 document" in
- gaea.kgs.ukans.edu.
- But I could not figure out.
-
- My applescript is as follows. Could you help me fill up the Excel part?
-
- ******************************
- tell application "Eudora2.0.1"
- set N to CountElements Mailbox "In" of Mail Folder "" each Message
- repeat with i from 1 to N by 1
- set S to GetData the Sender of Message i of Mailbox "In" of
- Mail Folder ""
- set D to GetData the Date of Message i of Mailbox "In" of
- Mail Folder ""
- set Sub to GetData the Subject of Message i of Mailbox "In"
- of Mail Folder ""
- tell application "Microsoft Excel"
-
- -- I NEED YOUR HELP HERE!
- -- making spreadsheet which have 3 columns
- -- 1st column is for S (sender)
- -- 2nd column is for D (date)
- -- 3rd column is for Sub (subject)
-
- end tell
- end repeat
- end tell
- *****************************
-
- Thanks in advance.
-
- //Doug Uno -- uno@cs.uiuc.edu -- University of Illinois
- =========================================================================
- Date: Tue, 8 Mar 1994 16:58:47 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Richard Kline <kliner@SYNOPSYS.COM>
- Subject: Re: AppleScript Eudora to Excel
-
- Doug Uno Wrote the following
-
- >_______________________________________________________________________________
- >From: Macintosh Scripting Systems on Tue, Mar 8, 1994 4:50 AM
- >Subject: AppleScript Eudora to Excel
- >To: Multiple recipients of list MACSCRPT
- >
- >I am trying to collect data from Eudora and make the worksheet of those data
- >on Excel. I could handle getting data from Eudora, but Excel seems me very
- >choosy. I used "open dictionary", I read "XL4 document" in
- >gaea.kgs.ukans.edu.
- >But I could not figure out.
- >
- >My applescript is as follows. Could you help me fill up the Excel part?
- >
- >******************************
- >tell application "Eudora2.0.1"
- > set N to CountElements Mailbox "In" of Mail Folder "" each Message
- > repeat with i from 1 to N by 1
- > set S to GetData the Sender of Message i of Mailbox "In" of
- >Mail Folder ""
- > set D to GetData the Date of Message i of Mailbox "In" of
- >Mail Folder ""
- > set Sub to GetData the Subject of Message i of Mailbox "In"
- >of Mail Folder ""
- > tell application "Microsoft Excel"
- >
- > -- I NEED YOUR HELP HERE!
- > -- making spreadsheet which have 3 columns
- > -- 1st column is for S (sender)
- > -- 2nd column is for D (date)
- > -- 3rd column is for Sub (subject)
- >
- > end tell
- > end repeat
- >end tell
- >*****************************
- >
- >Thanks in advance.
- >
- >//Doug Uno -- uno@cs.uiuc.edu -- University of Illinois
-
- The following script seems to acomplish what Doug is requesting. The only
- issue is that to get the script to compile on my machine I need to add the
- word "each" before the word message in line 6. It then proceeds to be
- eliminated at compile. Any comments on that issue?
-
-
- tell application "Microsoft Excel 4.0"
- activate
- make new Document
- end tell
- tell application "Eudora 2.0.2fc1-3.94"
- set N to CountElements Mailbox "In" of Mail Folder "" each Message
- repeat with i from 1 to N by 1
- set S to GetData the Sender of Message i of Mailbox "In" of
- Mail Folder ""
- set D to GetData the Date of Message i of Mailbox "In" of
- Mail Folder ""
- set Sub to GetData the Subject of Message i of Mailbox "In"
- of Mail Folder ""
- tell application "Microsoft Excel 4.0 '"
- copy S to Cell ("R" & i & "C1")
- copy D to Cell ("R" & i & "C2")
- copy Sub to Cell ("R" & i & "C3")
- end tell
- end repeat
- end tell
-
-
- Rich
-
- ----------
- Richard Kline
- Synopsys, Inc. e-mail: kliner@synopsys.com
- 700 East Middlefield Road phone : (415) 694-4079
- Mountain View, CA 94043-4033 fax : (415) 965-8637
- =========================================================================
- Date: Tue, 8 Mar 1994 19:34:18 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Richard Millward <rsm@MCS.COM>
- Subject: Re: ClarisWorks support Appl
-
- > RE>ClarisWorks support Appl
- >In answer to:
- >
- >>At $29 for a copy to replace the copy of Claris Resolve that I bought a
- >>while back, was wondering if ClarisWorks supports AppleScript. Anyone know?
- >>
- >
- >ClarisWorks 2.0v1 supports the following:
- >
- >The required AppleEvent Suite
- >
- > Quit
- > Print
- > Open Doc
- > Open application
- >
- >A Core Subset, consisting of:
- >
- > Get Data
- > Set Data
- >
- >& the objects:
- >
- > Document
- > Record
- > Field
- > Cell
- >
- >That's what opening ClarisWorks as an AppleScript Dictionary tells me!
-
- The reality is that the Required Events work sometimes and the subset of
- the core not at all. I was trying to use ClarisWorks as a "tutorial" for
- AppleEvents, since I know CW pretty well, and doing nothing but crashing.
- Claris Tech Support informed me that "ClarisWorks does not officially
- support AppleEvents." Privately, I was told that one call _would_ work, but
- I didn't understand it and wasn't in any mood by that time to even save
- what the syntax of it was. Sorry.
-
- Richard Millward
- MCSNet/Chicago
- rsm@mcs.com
- =========================================================================
- Date: Tue, 8 Mar 1994 19:34:24 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Richard Millward <rsm@MCS.COM>
- Subject: Re: ClarisWorks support AppleScript?
-
- >>At $29 for a copy to replace the copy of Claris Resolve that I bought a
- >>while back, was wondering if ClarisWorks supports AppleScript. Anyone know?
- >>
- >
- >Hello,
- >
- > Sorry I don't know the answer but I was wondering where you heard about
- >the $29 sidegrade ? Thanks.
- >
-
- It's in this week's MacWeek - there's an 800 number to call with your
- Resolve serial number at hand and they will trade you ClarisWorks, for
- $29.00, for Resolve which they'll stop selling at the end of this month and
- supporting at the end of March, 1995.
-
- Richard Millward
- MCSNet/Chicago
- rsm@mcs.com
- =========================================================================
- Date: Tue, 8 Mar 1994 19:41:07 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: mark stewart <mark_stewart@BIAD23.UTHSCSA.EDU>
- Subject: capabilities of OSAX
-
- capabilities of OSAX
- I'm just starting to come up to speed on AppleScript having been a Frontier
- user for sometime. The most intriguing aspect of its architecture are these
- external commands, the osaxen (great name by the way).
-
- I have a specific use in mind. I would like to be able to launch a copy of
- Frontier Runtime on a remote Mac from my desk. As is, there's no way to do this
- short of having some other scriptable, Apple Event aware app running on the
- remote machine that can send Runtime the app launch event.
-
- Would it be possible to call a osax on the remote machine and have it launch
- Runtime? This would have the advantage of not requiring any other apps. I guess
- the question--or one of many-- is how aware is the AppleScript runtime engine?
-
- Mark Stewart
- Research Imaging Center
- UTHSCSA
- =========================================================================
- Date: Tue, 8 Mar 1994 21:28:07 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lee K. Hoong" <lhoong@EMORYU1.CC.EMORY.EDU>
- Subject: Frontmost: Need help with Metas!
-
- Help!
-
- I've created a window in the Frontmost interface builder that has a listbox
- with the form List-with-metas so that I can display columnar text in a
- scrolling list. Unfortunately, I cannot set up the list with any items
- that begin with any of the meta control characters [<O, <B, <I, (, etc].
- Is there a way to turn off the list formatting in some cases while leaving
- it on in others, all in the same listbox? I want a columnar list that looks
- like:
-
- <Begin> <End>
- <Old> <New>
- (more) (less)
-
- The formatting with the meta control characters also get in the way in
- pop-up menus if any of your menu items contain a parenthesis; the item will
- be disabled. Any workaround?
-
- Uncle Dave, are you there?
-
- Lee.
-
- Lee K. Hoong
- Dept. of Chemistry, Emory University
- Internet: lhoong@unix.cc.emory.edu | America On-line: LHOONG
- Disclaimer: I speak for myself only, not for Emory University
- =========================================================================
- Date: Tue, 8 Mar 1994 20:25:44 PST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mike Crawford <crawford@SCIPP.UCSC.EDU>
- Subject: Re: ClarisWorks support Appl
- In-Reply-To: <01H9QKLO0ZYE001CIC@SERV02.SLAC.STANFORD.EDU>; from "Richard
- Millward" at Mar 8, 94 7:34 pm
-
- >
- > The reality is that the Required Events work sometimes and the subset of
- > the core not at all. I was trying to use ClarisWorks as a "tutorial" for
- > AppleEvents, since I know CW pretty well, and doing nothing but crashing.
- > Claris Tech Support informed me that "ClarisWorks does not officially
- > support AppleEvents." Privately, I was told that one call _would_ work, but
- > I didn't understand it and wasn't in any mood by that time to even save
- > what the syntax of it was. Sorry.
-
- Yeah? Well, they're weenies. Writeswell Jr. supports Apple Events and you
- can get the source code for free.
-
- The one on the net is a little out of date. Send me your postal adress and
- I will mail you a floppy with the source code and the word services
- Apple Event suite specification. Someday I'll get around to uploading the
- update, but I want to fix some more stuff first. The source and protocol
- spec contain a lot of tutorial material.
- =========================================================================
- Date: Tue, 8 Mar 1994 20:32:56 PST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mike Crawford <crawford@SCIPP.UCSC.EDU>
- Subject: Re: ClarisWorks support AppleScript?
- In-Reply-To: <01H9QJ9552YU0018NL@SERV02.SLAC.STANFORD.EDU>; from "Richard
- Kline" at Mar 8, 94 4:58 pm
-
- PS. Here's where you can get writeswell jr. off the net:
-
- Mike Crawford | Author of the Word Services Apple Event Suite.
- crawford@scipp.ucsc.edu | Free Mac Source Code: ftp sumex-aim.stanford.edu
- | get /info-mac/dev/src/writeswell-jr-102-c.hqx
-
- PS. I'm speaking on it at MacHack '94 in June. Here is my abstract:
-
- The Word Services Apple Event Suite
- Michael D. Crawford
- Product Development Manager
- Working Software, Inc.
-
- The Word Services Apple Event Suite allows any application to link to
- a speller, grammar checker or other text service as if it was a
- built-in menu item. Working Software developed the protocol in
- cooperation with our competitors in the spelling business, as well as
- several grammar checker, database and word processor publishers, and
- Apple Computer, Inc. It is probably the simplest useful thing that a
- developer can do with Apple Events.
-
- Word Services is designed to be very easy for client programs to
- implement - the client (or word processor) needs only to send a single
- Apple Event to a server program (or spellchecker) and then resume its
- event loop. The server takes over control of the protocol, retrieving
- and changing text in the client program's document by using a small
- subset of Core Suite Apple Events. The complete source code to
- Writeswell Jr. will be distributed along with the protocol specification.
- Writeswell Jr. is a simple word processor that supports Word Services,
- and is provided as an example that developers may use to add support for
- the protocol to their own applications.
-
- Word Services applications have been shipping for over a year and a half.
- Spellers are available in a number of languages, and client programs ranging
- from a curriculum planner with a total of ten users to a major word
- processor have adopted the protocol. Mr. Crawford will reflect on the
- long process of developing and promoting an industry standard protocol.
- =========================================================================
- Date: Wed, 9 Mar 1994 07:32:31 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: King Rhoton <king@ACPUB.DUKE.EDU>
- Subject: Full text searches
-
- So, I've been able to cobble together an AppleScript for use with MacHTTP
- to do full text searches of a given web folder, but the problem is that
- even on a quadra, it takes about 40 seconds to search less than 300K. Can
- anyone suggest a scriptable application that can I might be able to "drive"
- through aplescript to do the text searches faster? I looked at UltraFind
- after all the rave reviews, but it doesn't have an "aete," so that's not
- it.
-
- Thanks,
-
- King Rhoton king@acpub.duke.edu
- =========================================================================
- Date: Wed, 9 Mar 1994 10:33:05 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Bill Seitz <Bill_Seitz@SCP.COM>
- Subject: RE>Full text searches
-
- King Rhoton <king@ACPUB.DUKE.EDU> writes:
- <<So, I've been able to cobble together an AppleScript for use with MacHTTP
- to do full text searches of a given web folder, but the problem is that
- even on a quadra, it takes about 40 seconds to search less than 300K. Can
- anyone suggest a scriptable application that can I might be able to "drive"
- through aplescript to do the text searches faster? I looked at UltraFind
- after all the rave reviews, but it doesn't have an "aete," so that's not
- it.<<
-
- You should be asking on the MacHTTP list instead of here! A couple of us on
- the list are using HyperCard as a back end. Unfortunately, it's still not
- super fast, and you have to work with 32K chunks (maximum field size). Our
- company is investigating AppleSearch as an engine, but we have determined just
- what's there in terms of AppleScript or Event support yet (the text search
- folks don't know how to feed back enough info to the requester).
- =========================================================================
- Date: Wed, 9 Mar 1994 10:14:24 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jim Van Peursem <jvp@TOOLS1.EE.IASTATE.EDU>
- Subject: Re: ClarisWorks support AppleScript?
- In-Reply-To: Your message of "Tue,
- 08 Mar 1994 20:32:56 PST."
- <9403090455.AA08456@tools1.ee.iastate.edu>
-
- >PS. Here's where you can get writeswell jr. off the net:
- >
- >Mike Crawford | Author of the Word Services Apple Event Suite.
- >crawford@scipp.ucsc.edu | Free Mac Source Code: ftp sumex-aim.stanford.edu
- > | get /info-mac/dev/src/writeswell-jr-102-c.hqx
-
- Except that sumex is broke and down for awhile. :)
-
- ---
-
- -Jim
- =========================================================================
- Date: Wed, 9 Mar 1994 12:07:56 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jay Martin <jay_martin@POSTOFFICE.AIDT.EDU>
- Subject: Re> Full text searches
-
- AppleSearch. ;-)
-
- Sorry, I don't know of any cost-effective solution!
-
- Jay
- +---------------------------------------+----------------------------------+
- | --------------+ Jay M. Martin | All ideas here are my own and |
- | +---------- | Alabama Industrial | in no way reflect my employer's. |
- | | ----------+ Development Training | martin@aidt.edu |
- | +---------------------------------- | (But what do they know?) |
- +---------------------------------------+----------------------------------+
-
- ------ From: Macintosh Scripting Systems, Mar 9, 1994 ------
-
- So, I've been able to cobble together an AppleScript for use with MacHTTP
- to do full text searches of a given web folder, but the problem is that
- even on a quadra, it takes about 40 seconds to search less than 300K. Can
- anyone suggest a scriptable application that can I might be able to "drive"
- through aplescript to do the text searches faster? I looked at UltraFind
- after all the rave reviews, but it doesn't have an "aete," so that's not
- it.
-
- Thanks,
-
- King Rhoton king@acpub.duke.edu
- =========================================================================
- Date: Wed, 9 Mar 1994 18:12:28 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Michael Kilgore <mak@TICIPA.WORKS.TI.COM>
- Organization: Texas Instruments, Inc.
- Subject: max script size?
-
- Well, I seem to have rammed into a Script Editor (1.0.1) limit on script
- size, namely about 102.7K (the size of the scpt resource in my file). I
- suppose something of that size might be regarded as rather perverted to
- begin with, but I was hoping to ignore some finding/loading management
- issues for a bit. Can anyone offer words of wisdom? Tks much.
-
- --
- Michael Kilgore Texas Instruments, Inc.
- (214) 917-2219 mak@works.ti.com
- =========================================================================
- Date: Thu, 10 Mar 1994 09:09:00 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "john (j.r.) walsh" <jwalsh@BNR.CA>
- Subject: SIGNON MACSCRP
-
- SIGNON MACSCRP
- =========================================================================
- Date: Thu, 10 Mar 1994 08:32:16 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jay Martin <jay_martin@POSTOFFICE.AIDT.EDU>
- Subject: @#%$ Dates!!
-
- Well, AppleScript has yet to get date manipulations right, IMHO. I can get
- the "date string of", which returns whatever the Time & Date control panel is
- set to display (i.e. "March 10, 1994", "Thursday, March 10, 1994", etc.). I
- need the date in a string of the form "Month day year".
-
- OK, I think to myself, I can get the "month of", which returns March. Well, I
- can't seem to be able to coerce this into anything usable. No string (or
- text), no integer, no nothing (actually, it can be put in a list - WOW)! It
- turns out that these are "constants", and constants can't be coerced into
- anything but lists.
-
- So, does anyone have a good way to solve this problem short of writing a
- (long) handler to get the info I want? Any osaxen out there to do this?
-
- Thanks,
- Jay
- +---------------------------------------+----------------------------------+
- | --------------+ Jay M. Martin | All ideas here are my own and |
- | +---------- | Alabama Industrial | in no way reflect my employer's. |
- | | ----------+ Development Training | martin@aidt.edu |
- | +---------------------------------- | (But what do they know?) |
- +---------------------------------------+----------------------------------+
- =========================================================================
- Date: Thu, 10 Mar 1994 10:30:49 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: capabilities of OSAX
-
- At 19:41 3/8/94 +0000, mark stewart wrote:
-
- >I'm just starting to come up to speed on AppleScript having been a Frontier
- >user for sometime. The most intriguing aspect of its architecture are these
- >external commands, the osaxen (great name by the way).
-
- A simple Scripting Addition of the verb handling kind is exactly the same
- as a Frontier UCMD. The same source code can be used to build both (and a
- Scripting Addition can be called from Frontier once you discover the Apple
- event it is expecting). If a Scripting Addition needs resources to do its
- thing, the similarity with the UCMD becomes weaker.
-
- >I have a specific use in mind. I would like to be able to launch a copy of
- >Frontier Runtime on a remote Mac from my desk. As is, there's no way to do this
- >short of having some other scriptable, Apple Event aware app running on the
- >remote machine that can send Runtime the app launch event.
- >
- >Would it be possible to call a osax on the remote machine and have it launch
- >Runtime? This would have the advantage of not requiring any other apps. I guess
- >the question--or one of many-- is how aware is the AppleScript runtime engine?
-
- I don't think so. A Scripting Addition's Apple event handler gets posted
- as a System handler (it can have more than one). At a minimum, you would
- need to address an event to something running on the remote machine,
- knowing that that something doesn't process the event (doesn't have a
- '****', '****' wildcard handler, for instance). Would addressing the
- Finder on the remote machine work for that purpose? I'm not
- sure...experiment to follow.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- "This is the network of our disconnect"
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Thu, 10 Mar 1994 11:12:23 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
-
- Previously, I said in part:
- >At 19:41 3/8/94 +0000, mark stewart wrote:
-
- >>Would it be possible to call a osax on the remote machine and have it launch
- >>Runtime? This would have the advantage of not requiring any other apps. I
- >>>>guess
- >>the question--or one of many-- is how aware is the AppleScript runtime engine?
- >
-
- >I don't think so. A Scripting Addition's Apple event handler gets posted as
- >a System handler (it can have more than one). At a minimum, you would need
- >to address an event to something running on the remote machine, knowing that
- >that something doesn't process the event (doesn't have a '****', '****'
- >wildcard handler, for instance). Would addressing the Finder on the remote
- >machine work for that purpose? I'm not sure...experiment to follow.
-
- Experiment notes:
- 1. Finder 7.1 seems not to allow System event handlers to operate when it
- is the addressed application for a remote event (that wasn't a hugh
- surprise). [Note that Finder 7.1 also does not have an 'aete', so from
- AppleScript one needs to create "generic" events.
-
- 2. Finder 7.1.3 WITH the "Finder Scripting Extension" does seem to allow
- System event handers to operate on events it doesn't process itself.
- [Finder 7.1.3 comes with System 7 Pro and does have an 'aete', but is no
- more scriptable than Finder 7.1. The Finder Scripting Extension is part of
- the AppleScript Developers Toolkit, and modernizes the Finder with respect
- to Apple events. It is not yet generally available.
-
- So, without that software, you don't gain much from a hypothetical
- Scripting Addition running on your remote machine, I guess.
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- "This is the network of our disconnect"
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Thu, 10 Mar 1994 20:32:00 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jeremy Quinn <jermq@MEDIA.DEMON.CO.UK>
- Subject: Re: Full text searches
-
- >So, I've been able to cobble together an AppleScript for use with MacHTTP
- >to do full text searches of a given web folder, but the problem is that
- >even on a quadra, it takes about 40 seconds to search less than 300K. Can
- >anyone suggest a scriptable application that can I might be able to "drive"
- >through aplescript to do the text searches faster? I looked at UltraFind
- >after all the rave reviews, but it doesn't have an "aete," so that's not
- >it.
- >
- >Thanks,
- >
- >King Rhoton king@acpub.duke.edu
-
-
- Maybe you could try OnLocation. I have not tried it's AE abilities, but it
- does have a Query Suite and has the advantage of building indexes in the
- background.
-
- Jeremy Quinn
-
- . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
- Jeremy Quinn : Internet:
- 3D/Interactive : jermq@media.demon.co.uk
-
- Designer & : Phone:
- Green Design Consultant : +44 71 737 6831
- . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
- Member of O2 Global Network : PGP Key available on request
- =========================================================================
- Date: Fri, 11 Mar 1994 10:29:58 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: new items on gaea
-
- I've uploaded some new items to gaea that some of you might be interested in.
-
- There is a new version of MacPPP. In MacPPP Control 1.1 example scripts are
- stored as text files instead of script applications to allow backward
- compatibility with AS 1.0. Mark also corrected his email address. You'll also
- find a new version of Mount Vol osax in the osaxen directory. It now includes an
- nslookup osaxen and the source code.
-
- You'll find a brief document describing the Apple Event changes from from
- FileMaker Pro 2.0v4 Mac to 2.1v1. You'll also notice that I've started placing
- the monthly mailing list digests in the /docs/digests directory.
-
- There is a new version of FolderWatcher in the addons directory. And I have
- gathered several scripts from other sources.
-
- The Parse script is an AppleScript version of a natural language parser. Be
- warned that it can be slow. There are a collection of scripts for Canvas 3.0.
- I tried to use them with 3.5 and didn't have much luck--read that as my Mac
- froze. The GraphSearch script is an implementation of the GraphSearch
- algorithm in AppleScript. And the Level6Scripts contains a number of scripts
- that you'll find useful with OSA Menu: Show Folder Size Off/On, Convert to SD
- Archive, Path to Clipboard, Remove .sea Code, and Append to Clippings File.
-
- I've appended the paths to these goodies. Have fun.
-
- pf
-
- applescript/osaxen/MacPPPControl.sit.hqx
- applescript/osaxen/MountVolosax.sit.hqx
- applescript/docs/FMProChanges.txt
- applescript/docs/digests/feb94
- applescript/addons/FW2.0.3.sit.hqx
- applescript/scripts/PARSE.sit.hqx
- applescript/scripts/CanvasDemoScripts.sit.hqx
- applescript/scripts/GraphSearch.sit.hqx
- applescript/scripts/LEVEL6ScriptsVol1.sit.hqx
- =========================================================================
- Date: Fri, 11 Mar 1994 13:47:49 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Stephen Jonke <jonke@GSFC.NASA.GOV>
- Subject: New member - questions about scripting Eudora
-
- First off, hello -- I just joined the list. I don't seem to be getting too
- many messages (exactly one so far), so hopefully I am actually getting the
- full message feed....
-
- I've just started using AppleScript. It's seems fantastic and I've had
- some success scripting for StuffitDeluxe, but I've run into some problems
- trying to figure out how to script Eudora 1.4.2. According to Eudora's
- dictionary, the "get" command "Works for message & mailbox properties,
- fields, and whole messages." It also says that if you omit the reference,
- it defaults to the "current" message.
-
- Leaving off the reference always returns an error from Eudora. In
- particular I'm trying to get the "isOutgoing" property for the "current"
- message, which I presume means the topmost open message window (correct)?
- I'm using the following test script:
-
- tell application "Eudora1.4.2"
- copy (get IsOutgoing) to openMessageToSend
-
- if openMessageToSend then
- display dialog "Open message to send"
- else
- display dialog "No open message to send"
- end if
-
- end tell
-
-
- Running this returns an error on "IsOutgoing" saying:
-
- Eudora1.4.2 got an error: Can't get IsOutgoing.
-
- Note that it works fine if I use:
-
- copy (get IsOutgoing of message 1) to openMessageToSend
-
- However, I really have a more fundamental question, because even if I could
- leave out the reference, I suspect this wouldn't do what I want. The
- problem is that if I reference message 1, but there is no message 1, then
- the script stops with an error. Is there any way that I can find out IF
- there are message windows open (or better, get a list of open windows)?
- Sorry if the answer to this is extremely basic -- in many ways I find
- AppleScript intuitive, but in others I'm finding it pretty confusing.
-
- Any help is appreciated,
-
- Steve
-
- ---------------------
- jonke@gsfc.nasa.gov
- ---------------------
- =========================================================================
- Date: Fri, 11 Mar 1994 13:54:23 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Bill Seitz <Bill_Seitz@SCP.COM>
- Subject: MacHTTP list
-
- A number of people have asked me how to join the listserver for MacHTTP
- discussion. Here's the poop:
-
- email to: listserv@oac3.hsc.uth.tmc.edu
- body: subscribe machttp_talk firstname lastname
- =========================================================================
- Date: Fri, 11 Mar 1994 11:28:44 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: Remote Launching
-
- >>Would it be possible to call a osax on the remote machine and have it launch
- >>Runtime? This would have the advantage of not requiring any other apps.
-
- The 7.x Finders allow remote launching. All you need is the exact location
- of the program you want to launch. Here's a snippet from the Finder
- Scripting Toolkit v1.0, Freeware by Daniel Ranson. I highly recommend this
- script. It should be on gaea.
-
- --
- -- RemoteOpenObjectsWithZone
- --
- -- Opens a list of Finder objects, as if they were double-clicked in the
- -- Finder.
- -- This variant sends the command to a remote Finder in any zone.
- -- The aliases must be meaningful to this remote Finder.
- --
- -- Parameters
- -- cont (alias) : folder containing the objects.
- -- objs (alias list) : objects to open.
- -- mach (string) : name of remote machine.
- -- zn (string) : name of zone.
- --
- -- Examples
- -- RemoteOpenObjectsWithZone(alias "Disk:", {alias "Disk:file",
- -- alias "Disk:folder:"}, "Bob's Mac", "2nd floor")
- --
- on RemoteOpenObjectsWithZone(cont, objs, mach, zn)
- tell application "Finder" of machine mach of zone zn to -- continued
- <<event FNDRsope>> cont given <<class fsel>>:objs
- end RemoteOpenObjectsWithZone
-
- Note that this script has been munged for the mailer. The << & >> are
- option-\ and option-shift-\. Some lines have been broken for clarity and
- need to be rejoined or used with an option-l continuation character.
-
- In addition, in AS 1.1, there is a osiz resource which determines (among
- other things) whether an osax will should get remote events. I believe the
- default is no. I think this means that in AS 1.0 osaxen cannot receive
- remote events, but I don't really recall.
-
- >I don't think so. A Scripting Addition's Apple event handler gets posted
- >as a System handler (it can have more than one). At a minimum, you would
- >need to address an event to something running on the remote machine,
- >knowing that that something doesn't process the event (doesn't have a
- >'****', '****' wildcard handler, for instance).
-
- Even if an app uses a wildcard handler (as many apps do) or handles the
- specific event, if it returns errAEEventNotHandled (-1708) then the event
- will go to the system event handler anyhow.
-
- >The Finder Scripting Extension is part of
- >the AppleScript Developers Toolkit, and modernizes the Finder with respect
- >to Apple events. It is not yet generally available.
-
- All you need is $$$. In my mind, this makes it generally available. Many
- of us _are_ in America and $$$ is the name of the game here.
-
- If you have $199 (or someone who can pay for you, like your employer) or
- $99 for the upgrade (if you bought the AS 1.0 CD) and want the scriptable
- Finder (well worth the money if you are into that sort of thing) then order
- the AS 1.1 CD from APDA. It makes utility scripts much simpler.
-
- >So, without that software, you don't gain much from a hypothetical
- >Scripting Addition running on your remote machine, I guess.
-
- As I pointed out above, you don't even need an osax to do this.
-
- Jon
-
- PS
-
- I've got a beta of Jon's Commands 1.1 ready. It adds a copyFile command
- and handles lists of files in deleteFile, moveFile and copyFile. It also
- adds text to fsspec coercions (darned handy). If you are interested in
- testing it, let me know. I want some people who are capable of exercising
- it well.
-
- If you have any other suggestions for osaxen, let me know.
- =========================================================================
- Date: Fri, 11 Mar 1994 13:41:24 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Vinod Kurup <vvkurup@STUDENTS.WISC.EDU>
- Subject: Re: Finder Events
-
- >
- >Experiment notes:
- >1. Finder 7.1 seems not to allow System event handlers to operate when it
- >is the addressed application for a remote event (that wasn't a hugh
- >surprise). [Note that Finder 7.1 also does not have an 'aete', so from
- >AppleScript one needs to create "generic" events.
-
- I have a question about sending Finder 7.1 generic events.
-
- I tried:
-
- tell application "Finder" to <<event FNAEempt>>
- ^ ^
- these characters are opt-\ & opt-| respectively
-
- (I can't remember the capitalization of the event, but I got it by using
- John Baxter's trick of sending the event through "Finder Liaison" and
- then removing Finder Liaison from my disk)
-
- I also tried:
-
- <<event FNAEempt>>
-
- Both of them just sat there pretending to do something, but not really
- doing anything.
-
- Can the Finder be scripted this way?
-
- Thanks for any info,
-
- Vinod
-
- --
- LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL
- L L
- L Vinod Kurup vvkurup@students.wisc.edu L
- L vkurup@macc.wisc.edu L
- L L
- L University of Wisconsin Medical School L
- L L
- LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL
- =========================================================================
- Date: Fri, 11 Mar 1994 13:53:37 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Vinod Kurup <vvkurup@STUDENTS.WISC.EDU>
- Subject: Re: Finder Events
-
- >I have a question about sending Finder 7.1 generic events.
- >
- >I tried:
- >
- >tell application "Finder" to <<event FNAEempt>>
-
- Well, I just read Jon Pugh's message and note that to do an open selection
- event to the finder, you have to do <<FNDRsope>> This made me realize that
- 'FNAE' was probably an event that FinderLiaison understands and that the
- Finder understands.
-
- tell application "Finder" to <<event FNDRempt>>
-
- empties the trash perfectly!
-
- Hope this helps somebody besides me.
-
- Vinod
-
-
- --
- LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL
- L L
- L Vinod Kurup vvkurup@students.wisc.edu L
- L vkurup@macc.wisc.edu L
- L L
- L University of Wisconsin Medical School L
- L L
- LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL
- =========================================================================
- Date: Fri, 11 Mar 1994 12:49:05 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Finder Events
-
- At 13:41 3/11/94 -0600, Vinod Kurup wrote:
- >I have a question about sending Finder 7.1 generic events.
- >
- >I tried:
- >
- >tell application "Finder" to <<event FNAEempt>>
- > ^ ^
- > these characters are opt-\ & opt-| respective=
- ly
- >
- > (I can't remember the capitalization of the event, but I got it by u=
- sing
- > John Baxter's trick of sending the event through "Finder Liaison" a=
- nd
- > then removing Finder Liaison from my disk)
- >
- >I also tried:
- >
- ><<event FNAEempt>>
- >
- >Both of them just sat there pretending to do something, but not really
- >doing anything.
- >
- >Can the Finder be scripted this way?
-
- Rather than event class FNAE, the Finder event class is FNDR (FNAE is
- likely the signature for Finder Liaison).
-
- This works...note that if Script Editor is in front, it takes Finder "a
- while" to get around to redrawing the trash can icon after emptying the
- trash.
-
-
- tell application "Finder" to =ABevent FNDRempt=BB
-
- Does work (I just exercised the above...Finder 7.1.3 in this case, but the
- =46inder Suite has worked since 7.0).
-
- --John
-
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- "This is the network of our disconnect"
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Fri, 11 Mar 1994 22:47:56 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: MACSCRPT Digest - 10 Mar 1994 to 11 Mar 1994
-
- A lot of people have been asking about scripting Eudora. I wrote a script
- which sorts my incoming mail folder into some mail folders and thought
- people might benefit from the example. This is simple and hardcoded, so
- you'll have to tweak things to get them to work. Once again, the word
- wrapping is off, so you'll have to rewrap them. I put comments at the end
- of the lines which are broken.
-
- I run this script from OSA Menu.
-
- Note that Eudora 1.4.2 has a much improved dictionary and is available from
- ftp.qualcomm.com as we type. ;)
-
- Jon
-
-
- tell application "Eudora1.4.2"
- activate
- set n to number of message of mailbox "In" of mail folder ""
- repeat with i from n to 1 by -1
- try
- set itsTo to field "To" of message i of mailbox "In" of mail folder ""
- on error
- set itsTo to ""
- end try
- try
- set itsCC to field "cc" of message i of mailbox "In" of mail folder ""
- on error
- set itsCC to ""
- end try
- set itsTo to itsTo & return & itsCC
- if itsTo contains "applescript@" or itsTo contains "MACSCRPT@" then
- move message i of mailbox "In" of mail folder "" --
- InsertHere end of mailbox "AppleScript News" of mail folder ""
- else if itsTo contains "AfterDark@" then
- move message i of mailbox "In" of mail folder "" --
- InsertHere end of mailbox "AfterDark" of mail folder ""
- else if itsTo contains "group@" or itsTo contains "brain@" then
- move message i of mailbox "In" of mail folder "" --
- InsertHere end of mailbox "Brains" of mail folder ""
- else if itsTo contains "jonpugh" or itsTo contains "jpugh@" --
- or itsTo contains "Jon Pugh" then
- move message i of mailbox "In" of mail folder "" --
- InsertHere end of mailbox "Saved Mail" of mail folder ""
- else
- --set itsFrom to Sender of Message i of Mailbox "In" of Mail Folder ""
- --display dialog "TO: " & itsTo & return & "FROM: " & itsFrom & space & i
- end if
- end repeat
- end tell
- =========================================================================
- Date: Sat, 12 Mar 1994 15:41:46 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Richard Millward <rsm@MCS.COM>
- Subject: Frontmost
-
- Can anybody give me an overview of how FrontMost is implemented? I'm
- frustrated by AppleScript's complete lack of UI and, after waiting far too
- long for my HyperCard 2.2 upgrade to arrive, I realized after reviewing it
- that it's not the solution I want either. Can FrontMost objects (especially
- windows or dialogs) be called from AppleScript without writing an entire
- FrontMost application? For example, can I create a dialog box in FrontMost
- with as many checkboxes as I have Eudora mailboxes in order to specify at
- runtime which I mailboxes I want sorted? TIA.
-
- Richard Millward
- MCSNet/Chicago
- rsm@mcs.com
- =========================================================================
- Date: Sat, 12 Mar 1994 15:47:23 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Richard Millward <rsm@MCS.COM>
- Subject: Re: New member - questions about scripting Eudora
-
- >First off, hello -- I just joined the list. I don't seem to be getting too
- >many messages (exactly one so far), so hopefully I am actually getting the
- >full message feed....
- >
- >I've just started using AppleScript. It's seems fantastic and I've had
- >some success scripting for StuffitDeluxe, but I've run into some problems
- >trying to figure out how to script Eudora 1.4.2. According to Eudora's
- >dictionary, the "get" command "Works for message & mailbox properties,
- >fields, and whole messages." It also says that if you omit the reference,
- >it defaults to the "current" message.
- >
- >Leaving off the reference always returns an error from Eudora. In
- >particular I'm trying to get the "isOutgoing" property for the "current"
- >message, which I presume means the topmost open message window (correct)?
- >I'm using the following test script:
- >
- > tell application "Eudora1.4.2"
- > copy (get IsOutgoing) to openMessageToSend
- >
- > if openMessageToSend then
- > display dialog "Open message to send"
- > else
- > display dialog "No open message to send"
- > end if
- >
- > end tell
- >
- >
- >Running this returns an error on "IsOutgoing" saying:
- >
- > Eudora1.4.2 got an error: Can't get IsOutgoing.
- >
- >Note that it works fine if I use:
- >
- > copy (get IsOutgoing of message 1) to openMessageToSend
- >
- >However, I really have a more fundamental question, because even if I could
- >leave out the reference, I suspect this wouldn't do what I want. The
- >problem is that if I reference message 1, but there is no message 1, then
- >the script stops with an error. Is there any way that I can find out IF
- >there are message windows open (or better, get a list of open windows)?
- >Sorry if the answer to this is extremely basic -- in many ways I find
- >AppleScript intuitive, but in others I'm finding it pretty confusing.
-
- I'm new to AppleScripting, too, but the one thing I finally figured out
- about Eudora is that either it is unable to fill in the "default path" to
- objects or I don't know how to set it up in advance so it "knows" about it.
- The following:
-
- tell application "Eudora 1.4.2"
- set thePrompt to ""
- set toGo to the outGoing of message 1 of mailbox "Out" of mail folder ""
- if ( toGo )
- set thePrompt to "There are messages to be sent"
- else
- set thePrompt to "There are no messages"
- end
- display dialog thePrompt
- end tell
-
- does what you'd expect it to. The difference is, of course, that there's a
- _full_ descriptor of the message you are trying to get at. I don't know how
- to "abbreviate" that so you don't have to type it all the time, but
- somebody else on the list surely will. Hope this helps 'til someone who
- knows more about it can respond.
-
- Richard Millward
- MCSNet/Chicago
- rsm@mcs.com
- =========================================================================
- Date: Sat, 12 Mar 1994 18:37:09 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
- Subject: Butler DAL server
-
- What is the best way to access a DAL database from AppleScript? Suggestions?
- Kee Nethery
-
- _________________________________________________________________
- Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
- =========================================================================
- Date: Sun, 13 Mar 1994 02:46:15 LCL
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Rick Zeman <rick.zeman@HIS.COM>
- Organization: Heller Info Services (info@his.com) Near DC
- Subject: Stuffit SuperExpander
-
- Anyone tried to use Aladdin's SuperExpander with AS 1.1 [and Deluxe 3.07]? I
- recompiled it (with _no_ changes at all) for 1.1 and it now barfs with the
- alert:
- "The 'Tran' verb requires a text parameter with a key of 'name'". The
- 'offending' script segment is:
-
- Translate match name transName command commandString --the execution
- parameters
-
- which executes fine under AS 1.0 (until it crashes at the very end of the
- script. I've found that a lot of scripts compiled under 1.0 need to be
- recompiled under 1.1. Hence, my conundrum).
-
- Huh? What's changed?
-
- ___________________________________________________________________________
- Rick Zeman "Wer nie sein Brot mit Tranen ass
- rzeman@his.com Wer nie die kummervollen Nachte
- Fidonet: 1:109/70.943 Auf seinem Bette weinend sas
- Der kennt euch nicht, ihr himmlishcen Machte."
- -- Goethe, "Wilhelm Meister"
- =========================================================================
- Date: Sun, 13 Mar 1994 08:29:52 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Brian Gaines <gaines@FSC.CPSC.UCALGARY.CA>
- Subject: Re: new items on gaea
-
- In message <199403130542.WAA27380@fsa.cpsc.ucalgary.ca> Macintosh Scripting
- Systems writes:
- > I've uploaded some new items to gaea that some of you might be interested in.
- >
- >
- > applescript/osaxen/MacPPPControl.sit.hqx
- > applescript/osaxen/MountVolosax.sit.hqx
- > applescript/docs/FMProChanges.txt
- > applescript/docs/digests/feb94
- > applescript/addons/FW2.0.3.sit.hqx
- > applescript/scripts/PARSE.sit.hqx
- > applescript/scripts/CanvasDemoScripts.sit.hqx
- > applescript/scripts/GraphSearch.sit.hqx
- > applescript/scripts/LEVEL6ScriptsVol1.sit.hqx
-
- Fred, applescript/osaxen/MountVolosax.sit.hqx
- does not seem to have made it, b.
-
-
- Brian Gaines Knowledge Science Institute, University of Calgary
- gaines@cpsc.ucalgary.ca Calgary, Alberta, Canada T2N 1N4
- =========================================================================
- Date: Sun, 13 Mar 1994 13:43:33 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Myers <dcmyers@ASTRO.UMD.EDU>
- Subject: "Scriptable" Finder in Sys 7.5: Menu Sharing w/Frontier?
-
- Does anyone know if the new, scriptable Finder slated for System 7.5
- will also support Frontier's menu sharing protocol? I believe
- that PhotoFlash from Apple did implement menu sharing, so I hope
- this indicates some level of corporate commitment for UserLand's
- product.
-
- -David.
- =========================================================================
- Date: Sun, 13 Mar 1994 13:48:29 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Stephen Jonke <jonke@GSFC.NASA.GOV>
- Subject: Re: New member - questions about scripting Eudora
-
- Ahh, that helps quite a bit, as does John Pugh's post. Thanks.
-
- However, one other question: What is the correct formatting of a "make"
- command in Eudora. What parameters are required? Can somebody give me an
- example?
-
- Also, it appears that if you say "message 1" (without a mailbox or folder
- reference), that this defaults to the topmost open message. Is there any
- way to reference other open messages? I tried using message 2, 3, etc. and
- it always refers to the top most open message anyway.
-
- Steve
-
- ---------------------
- jonke@gsfc.nasa.gov
- ---------------------
- =========================================================================
- Date: Sun, 13 Mar 1994 13:49:21 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Myers <dcmyers@ASTRO.UMD.EDU>
- Subject: Native PPC versions of scripting tools?
-
- Has anybody seen an official schedule (or, for that matter, heard any
- good rumors) for the release of native PPC versions of HyperCard
- and UserLand Frontier?
-
- -David.
- =========================================================================
- Date: Sun, 13 Mar 1994 14:52:08 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Leonard Rosenthol <leonardr@NETCOM.COM>
- Subject: Re: "Scriptable" Finder in Sys 7.5: Menu Sharing w/Frontier?
-
- >Does anyone know if the new, scriptable Finder slated for System 7.5
- >will also support Frontier's menu sharing protocol?
- >
- Unfortunately, it will not support Menu Sharing. There was a big
- push to get them to do so, but for a number of (IMHO silly) reasons, it
- doesn't. This means that FinderMenus is still at least somewhat useful.
-
-
- >I believe
- >that PhotoFlash from Apple did implement menu sharing, so I hope
- >this indicates some level of corporate commitment for UserLand's
- >product.
- >
- That was because Apple bought PhotoFlash from a Userland savvy
- company.
-
- However, there is a group pushing Apple to support MenuSharing in
- more products!!
-
- LDR
-
- -----------------------------------------------------------------------------
- Leonard Rosenthol Internet: leonardr@netcom.com
- Director of Advanced Technology AppleLink: MACgician
- Aladdin Systems, Inc. GEnie: MACgician
- =========================================================================
- Date: Sun, 13 Mar 1994 18:19:10 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Stephen Jonke <jonke@GSFC.NASA.GOV>
- Subject: Re: Frontmost
-
- >Can FrontMost objects (especially
- >windows or dialogs) be called from AppleScript without writing an entire
- >FrontMost application? For example, can I create a dialog box in FrontMost
- >with as many checkboxes as I have Eudora mailboxes in order to specify at
- >runtime which I mailboxes I want sorted? TIA.
-
- Is FrontMost freeware, shareware, commercial? Is it it available yet?
- Where? I want it! :)
-
- Steve
-
- ---------------------
- jonke@gsfc.nasa.gov
- ---------------------
- =========================================================================
- Date: Sun, 13 Mar 1994 15:30:34 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
- Subject: Re: Frontmost
-
- >>Can FrontMost objects (especially
- >>windows or dialogs) be called from AppleScript without writing an entire
- >>FrontMost application? For example, can I create a dialog box in FrontMost
- >>with as many checkboxes as I have Eudora mailboxes in order to specify at
- >>runtime which I mailboxes I want sorted? TIA.
- >
- >Is FrontMost freeware, shareware, commercial? Is it it available yet?
- >Where? I want it! :)
- >
- FrontMost comes with AppleScript 1.1. I ordered the upgrade specifically to
- get it.
-
- Kee Nethery
-
- _________________________________________________________________
- Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
- =========================================================================
- Date: Sun, 13 Mar 1994 21:20:11 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Peter Fleck - SMM <fleck@ASTRO.SPA.UMN.EDU>
- Subject: Re: ClarisWorks support AppleScript?
-
- ClarisWorks does have an AppleScript dictionary that can be opened
- in the Script Editor. It includes field and cell objects and I tried
- playing with it a bit. I succeeded in freezing up my Mac several times.
- I understand that Claris is aware that there are problems and a new
- version will have better AS support. I don't know if that means version
- 2.1 (just released) or not.
-
- The sidegrade offer (Resolve owners can purchase ClarisWorks for $29) was
- mentioned in last week's Tidbits. I would imagine you could call
- Claris to find out more.
- =========================================================================
- Date: Mon, 14 Mar 1994 11:57:33 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jeremy Quinn <jermq@MEDIA.DEMON.CO.UK>
- Subject: Eudora/Frontier Listsever
-
- I have plans to write a sort of ListServer/InfoBot for my Mac, using a
- combination of Eudora 2.x and Frontier 3.x.
-
- It seems to me that most of the work involved will be writing the
- interpreter that parses commands to the server.
-
- Is anybody out there involved in a similar project?
-
- I have so little time for this sort of activity, that I would be interested
- in collaberation with other people, or augmenting existing code.
-
-
- Thanks
-
-
- Jeremy Quinn
-
- . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
- Jeremy Quinn : Internet:
- 3D/Interactive : jermq@media.demon.co.uk
-
- Designer & : Phone:
- Green Design Consultant : +44 71 737 6831
- . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
- Member of O2 Global Network : PGP Key available on request
- =========================================================================
- Date: Mon, 14 Mar 1994 09:02:23 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Frank Lowney <flowney@MAIL.GAC.PEACHNET.EDU>
- Subject: Re: Eudora/Frontier Listsever
-
- >I have plans to write a sort of ListServer/InfoBot for my Mac, using a
- >combination of Eudora 2.x and Frontier 3.x.
- >
- >It seems to me that most of the work involved will be writing the
- >interpreter that parses commands to the server.
- >
- >Is anybody out there involved in a similar project?
- >
- >I have so little time for this sort of activity, that I would be interested
- >in collaberation with other people, or augmenting existing code.
- >
- >
- Glen Anderson "glenn.anderson@stonebow.otago.ac.nz" is developing a POP3
- Mac mail server called MailShare which has a primitive listServ function.
- You point it to a text file which is a return delimited list of e-mail
- addresses. As the software develops further I imagine that automatic
- sub/unsub will be incorporated.
- =========================================================================
- Date: Mon, 14 Mar 1994 06:56:29 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Steve Holden <sholden@COD.NOSC.MIL>
- Subject: Re: "Scriptable" Finder in Sys 7.5: Menu Sharing w/Frontier?
-
- > However, there is a group pushing Apple to support MenuSharing in
- >more products!!
-
- Anyway we can add to this push. Contact name and address?!? I don't
- mind writing a letter or two.
-
- My whole project is moving towards using Scripting in every application.
- If we can't do MenuSharing in the Finder, we will be at a disadvantage.
-
- Later,
-
- Steve
-
-
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- Steven D. Holden
- Macintosh System/Applications Engineer
- SAIC -> NRaD -> Project ICER
- Email: sholden@cod.nosc.mil, Phone: (619) 553-6750
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- Disclaimer: Opinions expressed are my own and do not
- necessarily reflect those of my employer or the government.
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- =========================================================================
- Date: Mon, 14 Mar 1994 15:12:15 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Native PPC versions of scripting tools?
-
- At 13:49 3/13/94 -0500, David Myers wrote:
- >Has anybody seen an official schedule (or, for that matter, heard any
- >good rumors) for the release of native PPC versions of HyperCard
- >and UserLand Frontier?
-
- I didn't answer then, because there wasn't anything I could say. I just
- copied the following out of the UserLand forum on CompuServe (it was posted
- by Doug Baron of UserLand):
-
-
- --------------------------
- Frontier goes Native!
- ---------------------
-
- Today, Apple Computer Inc. announced a new line of PowerPC-based Macintoshes.
- UserLand Software is pleased to announce that a native PowerPC version
- UserLand Frontier is well under way, and that a demo version is now
- available for downloading.
-
- Currently in beta testing, the native version boasts 2-X to 8-X performance
- improvements over versions running in emulation or on 680x0-based
- Macintoshes. Calculation-intensive tasks benefit the most from native
- processing.
-
- The demo package does not use the Thread Manager, so background- and
- multi-processing capabilities are not enabled, and the QuickScript window
- is not functional. The demo expires on May 1, 1994.
-
- In Library 8, ULFPPC.SIT. Check it out!
-
- UserLand Software
- March 14, 1994
- -------------------------
-
- --John
-
- --John W. Baxter Port Ludlow, WA USA jwbaxter@pt.olympus.net
- UserLand Software support
- =========================================================================
- Date: Mon, 14 Mar 1994 18:29:00 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Software Designs Unltd,Lee Buck,
- VCA" <LEE.BUCK@APPLELINK.APPLE.COM>
- Subject: SIGNOFF SDU
-
- Please sign us off: SDU and LEE.BUCK
- ----------------------------------------------------------------------------
- MACSCRPT@DARTCMS1.DARTMOUTH.EDU
- =========================================================================
- Date: Mon, 14 Mar 1994 13:35:48 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: mark stewart <mark_stewart@BIAD23.UTHSCSA.EDU>
- Subject: Re- Re- Remote Launching
-
- Re: Re: Remote Launching
- >The 7.x Finders allow remote launching. All you need is the exact location of
- the program you wish to launch..
-
- Hmm. I picked up a copy of Dan Ranson's Finder Scripting Toolkit and tried
- what I would have expected was an even simpler script than the one you
- mentioned (RemoteOpenObjectsWithZone).
-
- Here it is:
- on OpenObjects(alias "Mark's HD:Frontier 3.0 alias:", {alias "Mark's
- HD:Frontier 3.0:Frontier Runtime(tm) alias"})
- tell application "Finder" to open cont items objs
- end OpenObjects
-
- (You can ignore the spacing/line wraps.)
- The apps and aliases and paths are all local. I've made an alias to the
- Frontier 3.0 folder and placed it at the root level of my disk, Mark's HD. I've
- also made an alias to the app, Frontier Runtime, and put it into the container
- specified in the first param, Mark's HD:Frontier 3.0:. The Script Editor
- responds by saying it can't find the folder alias "Mark's HD:Frontier 3.0
- alias:" I've also tried putting the alias within the container it points to.
- Am I understanding Ranson's description of what an alias should be:
- " o alias : an alias to a Finder object, for instance "alias
- "Disk:folder:file"".
- It cannot be a pathname or some other way of refering to the object.
-
- Is there an osax that I'm supposed to have loaded in order to pull this script
- off? I've got the fwin osax loaded just for paranoia's sake. Does anyone else
- get this error if you run this script? Am I crazy, losing my mind?
-
- Mark Stewart
- BIAD-Research Imaging Center
- UTHSCA
- =========================================================================
- Date: Mon, 14 Mar 1994 11:43:13 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Lewis <lewis@NETCOM.COM>
- Subject: Re: MacPPP OSAX under Frontier's FinderMenu
-
- >>Ok, I've gotten a good copy of MacPPP Control. I've installed it into
- >>Frontier using the Load OSAX droplet. The script fragment
- >>
- >> if PPPOpened () {
- >> closePPP ()
- >> }
- >>
- >>works fine if executed from Frontier (placed into a script which is
- >>executed from the Quick Script window). If called from FinderMenu, however,
- >>it will hang the machine if the closePPP () clause is executed. I've tried
- >>various combinations of clock.waitSeconds inserted before and after the
- >>call, and I've also tried Frontier.bringToFront before the fragment is
- >>executed. Nothing so far helps. Any assistance would be appreciated.
- >>Thanks.
- >
- >Humm, I'm no sure what to say. I use MacPPP Control in a series of
- >AppleScript script applications which I execute from MenuChoice. I also
- >have scripts running from my Scheduler application useing MacPPP Control
- >with no trouble.
- >
- >I don't have Frontier on my system so I can't test with it. I'm willing to
- >supply the source for the MacPPP Control OSAX if thet will help you address
- >the problem.
- >
- >-Mark
-
- Hi,
-
- Perhaps I was a little too flip in my previous response. I would like to
- examine the source if it's ok with you. Thanks.
-
- David
-
- ------------------------------------------------------------------------
- David Lewis lewis@netcom.com (408) 439-2374
- =========================================================================
- Date: Mon, 14 Mar 1994 16:42:02 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Stephen Jonke <jonke@GSFC.NASA.GOV>
- Subject: AppleScript and System 7 Pro
-
- A colleague of mine who had AppleScript 1.0 and System 7.1 recently
- upgraded to System 7 Pro. I also have System 7 Pro and installed
- AppleScript 1.1 (from HyperCard 2.2) after getting 7 Pro. I can not find
- the extension "Apple Events Manager" anywhere on my hard disk, but it's
- icon still appears during startup. Is the Apple Event Manager incorporated
- as part of the system in System 7 Pro? Does someone with System 7.1 NEED
- the Apple Event Manager extension, or just the AppleScript extension?
-
- Steve
-
- ---------------------
- jonke@gsfc.nasa.gov
- ---------------------
- =========================================================================
- Date: Mon, 14 Mar 1994 18:28:44 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jeremy Quinn <jermq@MEDIA.DEMON.CO.UK>
- Subject: Re: MacPPP OSAX under Frontier's FinderMenu
-
- >Ok, I've gotten a good copy of MacPPP Control. I've installed it into
- >Frontier using the Load OSAX droplet.................
-
-
-
- Where did you get the "Load OSAX droplet" from?
-
- Thanks
-
-
-
- Jeremy Quinn
-
- . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
- Jeremy Quinn : Internet:
- 3D/Interactive : jermq@media.demon.co.uk
-
- Designer & : Phone:
- Green Design Consultant : +44 71 737 6831
- . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
- Member of O2 Global Network : PGP Key available on request
- =========================================================================
- Date: Mon, 14 Mar 1994 17:02:18 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: argon lazer battlegrid <ub141@FREENET.VICTORIA.BC.CA>
- Subject: Scripting Stuffit
-
- I can now get my script to Unstuff items, but no
- luck so far with unbinhexing them. I pretty much
- cut and pasted the translater code right from the
- sutffit examples, just changing a couple
- variable names but I don't think I changed the functionality
- of it at all.
-
- When I drop a .hqx file onto 'Super Expander', where I
- grabbed the code, it decodes fine, but in my script
- it seems to completely ignore the translator.Hmmmmm.
-
- =46or those of you who don't have a copy to look at
-
- on decode(transName, fileName)
- set commandString to "decode \"" & fileName & "\""
- tell application "StuffIt Lite=81"
- activate
- Translate name transName command commandString
- end tell
- end decode
-
- where I have passed transName as "BinHex4".
-
- Needless to say, I find AppleScript quite frustrating.
- I don't know if it is the docs (or lack thereof) or
- just that I am used to a little more structure
- when programming. (I am doing a comp. sci. degree)
- Regardless, I am glad this list is here to help
- me out. Thanks very much.
-
- Did I mention that I have AS 1.0 on a c610/sys7.1?
-
- Chris Fraser ub141@freenet.victoria.bc.ca cfraser@island.amtsgi.bc.c=
- a
- Finger me here for my PGP public key--^
- "Note: Some very inexpensive pedals are not serviceable. Other pedals are
- theoretically possible to service, but seem designed to discourage it. When
- these need work, we suggest you work them into a garbage can, and get a new
- pair of pedals." Bridgestone Owner's Manual, Bridgestone Cycle USA.
- =========================================================================
- Date: Mon, 14 Mar 1994 21:43:34 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: O'le Biscut Barrel <schuettm@UCS.ORST.EDU>
- Subject: Re: new items on gaea
- In-Reply-To: (null)
-
- What is the telnet address of gaea? Thanks.
-
- ------------------------------------------------------------
- Marc Schuette Biology/Computer Science
- email: schuettm@ucs.orst.edu Oregon State University
-
- -GO BLAZERS!-GO BLAZERS!-GO BLAZERS!-GO BLAZERS!-GO BLAZERS!-
- ------------------------------------------------------------
- =========================================================================
- Date: Tue, 15 Mar 1994 03:34:19 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Y. Doug Uno" <uno@CS.UIUC.EDU>
- Subject: AppleScript, Mail folder of Eudora
-
- Could anybody tell me what is the problem in the following applescript?
- I cannot handle Mail folders. The script is as follows.
-
- display dialog "Mail Folder Name? if you have" default answer ""
- -- I type folder name "F1" which exists.
- set MFName to (text returned of result)
- display dialog "MailBox Name?" default answer "In"
- -- I type Mailbox name "M1" which exists in "F1".
- set MBoxName to (text returned of result)
- tell application "Eudora2.0.1"
- set N to number of Message of Mailbox MBoxName of Mail Folder MFName
- end tell
-
- It causes error said "Eudora2.0.1 got an error. Can't get Message of
- Mailbox "M1" of Mail folder "F1". If I type nothing for Mail folder and
- type "Out" or whatever the Mailbox exist, it works. The problem is hadling
- mail folder.
-
- Also, I would like to change this script using "choose file" instead of
- "display dialog" but I could not figure out to convert reference to string.
- How can I solve this?
-
- Thanks in advance.
-
- -----------------------------------------
- Y. Doug Uno e-mail: uno@cs.uiuc.edu
- University of Illinois
- 1304 W. Springfield Ave. Room 2413
- Urbana, IL 61801
- =========================================================================
- Date: Tue, 15 Mar 1994 10:16:00 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Comments: Warning -- original Sender: tag was ross@BNR.CA
- From: ab026@FREENET.CARLETON.CA
- Subject: Re: "Scriptable" Finder in Sys 7.5: Menu Sharing w/Frontier?
-
- David Myers <dcmyers@ASTRO.UMD.EDU> writes:
-
- >Does anyone know if the new, scriptable Finder slated for System 7.5
- >will also support Frontier's menu sharing protocol? I believe
- >that PhotoFlash from Apple did implement menu sharing, so I hope
- >this indicates some level of corporate commitment for UserLand's
- >product.
-
- For a different approach to menu sharing, one that doesn't require
- explicit support by target applications, check out my Menu Events system
- extension (server) and Menu Grabber application (client).
-
- Briefly, Menu Events adds a system event handler which supports a suite
- of three events:
- Query Menu List
- Query Menu
- Select Menu Item
- The Select Menu Item event causes the recipient to act as though the
- given menu item was selected by the user. All that is required of the
- target application is that it be high-level-event-aware (i.e., that it
- support the Required suite) and that it not be programmed in such a way
- as to defeat system event handlers (this means that it *doesn't* work
- with Finder 7.1 or earlier, ResEdit 2.1.1, and some Microsoft apps - but
- it *SHOULD* work with Finder 7.5, which Frontier may not).
-
- Menu Grabber exemplifies what programmers and scripters can accomplish
- with the Menu event suite. It lets you pick an application from any Mac
- on your AppleTalk network, then proceeds to grab a copy of its menu bar,
- so that you can control it remotely through its menu commands.
-
- While there are some limitations, these programs may help you. They are
- in the final stages of beta testing, but I invite anyone on the MACSCRPT
- mailing list to pick up a copy for evaluation before release:
-
- ftp://rever.nmsu.edu/pub/AWOL/AWOL_Utilities/Menu_Events_1.0.7.sit.Hqx
- ftp://rever.nmsu.edu/pub/AWOL/AWOL_Utilities/Menu_Grabber_1.0.6.sit.Hqx
-
- These programs are fully documented, but the documents are not in plain
- text, so while you're there, better pick up one more thing:
-
- ftp://rever.nmsu.edu/pub/AWOL/AWOL_Utilities/Help_on_Wheels_1.0.4.sit.Hqx
-
- Have fun!
-
- Ross Brown - AWOL Software Productions - Ottawa, Ontario, Canada
- publisher of AWOL Utilities - "the best deal in freeware!"
- ab026@freenet.carleton.ca
- =========================================================================
- Date: Wed, 16 Mar 1994 11:09:01 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Myers <dcmyers@ASTRO.UMD.EDU>
- Subject: Early observations on PowerPC compatibility with scripting tools
-
- Okay...After one evening spent with a brand new PowerMac 6100,
- I'd like to report on my initial observations on a couple
- of key applications.
-
-
- UserLand Frontier:
-
- Works well; works reasonably fast (but hey, I just traded up from
- an SE/30, so how would I know?). FinderMenus 3.0, however,
- appears to crash in a very nasty way. This is a big disappointment,
- but with J. Baxter's recent announcement of an upcoming native
- Frontier port, I am a little consoled.
-
-
- AppleScript:
-
- The machine comes with Applescript 1.1 and something I believe called
- "RISC Plug-In" (I am at work as I write this, so I can't check on the
- full name). What exactly this "RISC Plug-In" does I can't say for
- sure. Anybody know? I prefer Frontier, so I didn't do too much
- playing around with AS.
-
-
- SITcomm:
-
- Another disappointment: SITcomm crashed when I started a ZMODEM transfer
- using the supplied ZMODEM tool. Any word from our Aladdin experts here?
-
-
- -David.
- =========================================================================
- Date: Wed, 16 Mar 1994 14:29:25 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jay Martin <jay_martin@POSTOFFICE.AIDT.EDU>
- Subject: FileMaker Pro examples
-
- Anyone have any good example scripts using FileMaker?
-
- My main question is - how do you (or can you) specify a "whose" clause in a
- get data statement. How do you find record(s) that contain a certain value in
- one of the fields?
-
- Thanks,
- Jay
- +---------------------------------------+----------------------------------+
- | --------------+ Jay M. Martin | All ideas here are my own and |
- | +---------- | Alabama Industrial | in no way reflect my employer's. |
- | | ----------+ Development Training | martin@aidt.edu |
- | +---------------------------------- | (But what do they know?) |
- +---------------------------------------+----------------------------------+
- =========================================================================
- Date: Wed, 16 Mar 1994 16:19:45 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: FileMaker Pro examples
- In-Reply-To: <no.id> from "Jay Martin" at Mar 16, 94 02:29:25 pm
-
- --Jay Martin wrote:
- >
- >Anyone have any good example scripts using FileMaker?
-
- Not really. All of the FM Pro scripting I've done has been little
- one shot stuff. I just haven't gotten around to doing anything worth
- keeping yet.
-
- >My main question is - how do you (or can you) specify a "whose" clause in a
- >get data statement. How do you find record(s) that contain a certain value in
- >one of the fields?
-
- tell app "FileMaker Pro"
- show every record where cell "fieldname" contains "value"
- end tell
-
- There are all kinds of variations on this, you can also do
- combinations, and use things like "does not contain". This has to be one
- of the coolest things about the Apple Event Object Model, IMO.
-
- -Hades
- =========================================================================
- Date: Wed, 16 Mar 1994 16:41:05 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Stephen Jonke <jonke@GSFC.NASA.GOV>
- Subject: Re: AppleScript, Mail folder of Eudora
-
- >It causes error said "Eudora2.0.1 got an error. Can't get Message of
- >Mailbox "M1" of Mail folder "F1". If I type nothing for Mail folder and
- >type "Out" or whatever the Mailbox exist, it works.
-
- This is the same problem I ran into until I realized that any mail folders
- you create are created in mail folder "" (empty string), the top most mail
- folder. So the correct reference would be:
-
- ...Mailbox MBoxName of Mail Folder MFName of Mail Folder ""
-
- Steve
-
- ---------------------
- jonke@gsfc.nasa.gov
- ---------------------
- =========================================================================
- Date: Wed, 16 Mar 1994 16:01:55 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jay Martin <jay_martin@POSTOFFICE.AIDT.EDU>
- Subject: Re> Re: new items on gaea
-
- The address is gaea.kgs.ukans.edu.
-
- Jay
-
- ------ From: Macintosh Scripting Systems, Mar 16, 1994 ------
-
- What is the telnet address of gaea? Thanks.
- =========================================================================
- Date: Wed, 16 Mar 1994 16:01:24 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: new items on gaea
- In-Reply-To: Your message of "Mon,
- 14 Mar 94 21:43:34 PST." <9403162157.AA03141@lks.lks.csi.com>
-
- > What is the telnet address of gaea? Thanks.
-
- gaea.kgs.ukans.edu or 129.237.140.40.
-
- pf
-
-
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
-
- "Bad spellers of the world, untie!"
- --Graffito
- =========================================================================
- Date: Wed, 16 Mar 1994 17:25:34 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Stephen Jonke <jonke@GSFC.NASA.GOV>
- Subject: Scriptable news reader?
-
- Does anyone know if there is a scriptable news reader? I'd like to write a
- script for Eudora (to put in the OSA Menu) to open refeferenced messages
- from email messages in Eudora....
-
- Steve
-
- ---------------------
- jonke@gsfc.nasa.gov
- ---------------------
- =========================================================================
- Date: Wed, 16 Mar 1994 17:35:17 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Stephen Jonke <jonke@GSFC.NASA.GOV>
- Subject: Is AppleScript free?
-
- One thing I've been wonder is, is AppleScript free? Can I send a copy of
- the AppleScript extension and associated files to a colleague so that they
- can at least run scripts I've written? What about the upgrade from 1.0 to
- 1.1? If we have a site license for System 7 Pro (which includes
- AppleScript 1.0), do we also have a site license for 1.1? What about the
- ScriptEditor?
-
- Steve
-
- ---------------------
- jonke@gsfc.nasa.gov
- ---------------------
- =========================================================================
- Date: Wed, 16 Mar 1994 16:44:10 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: MacPPP OSAX under Frontier's FinderMenu
- In-Reply-To: Your message of "Mon,
- 14 Mar 94 18:28:44 GMT." <9403162239.AA03883@lks.lks.csi.com>
-
- > Where did you get the "Load OSAX droplet" from?
- >
-
- I just checked and it isn't on gaea, though it is sitting on my Mac at home.
- If you'll check the /frontier/applets/ directory of gaea.kgs.ukans.edu later
- this evening, you'll find it there.
-
- Or someone might mail it to you......
-
- pf
-
-
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
-
- "Bad spellers of the world, untie!"
- --Graffito
- =========================================================================
- Date: Wed, 16 Mar 1994 17:12:42 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: AppleScript and System 7 Pro
- In-Reply-To: Your message of "Mon,
- 14 Mar 94 16:42:02 EST." <9403162305.AA04079@lks.lks.csi.com>
-
- Steve,
-
- > A colleague of mine who had AppleScript 1.0 and System 7.1 recently
- > upgraded to System 7 Pro. I also have System 7 Pro and installed
- > AppleScript 1.1 (from HyperCard 2.2) after getting 7 Pro. I can not find
- > the extension "Apple Events Manager" anywhere on my hard disk, but it's
- > icon still appears during startup. Is the Apple Event Manager incorporated
- > as part of the system in System 7 Pro? Does someone with System 7.1 NEED
- > the Apple Event Manager extension, or just the AppleScript extension?
-
- >From the faq . . .
-
- 1.1 Developer's Toolkit and Scripting Kit versions both released
- 1/94. This version incorporated the Apple Event Manager 1.03 extension,
- which was previously separated, into the AppleScript extension.
-
-
- pf
-
-
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- pf = Fred Terry, Cadence Design Systems, pfterry@lks.csi.com, +1 913/841-1283
-
- "Bad spellers of the world, untie!"
- --Graffito
- =========================================================================
- Date: Wed, 16 Mar 1994 00:58:36 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jay Hebert <jayh@LAISON.W8HD.ORG>
- Organization: L'AISON - Beverly Hills, Michigan
- Subject: Re(2): "Scriptable" Finder in
-
- 'scuze my ignorance y'all, but
- "What is MenuSharing?"
- Thanks,
- Jay
- --
- =======
- ===================jayh@laison.w8hd.org=========================
- Metallica,|| When a man lies he murders / Some part of the world
- To Live ||These are the pale deaths which / Men miscall their lives
- is || All this I cannot bear / To witness any longer
-
- To Die || Cannot the kingdom of salvation / Take me home
- =======================================================================
- 1) These opinions are mine.-==- 2) Sending me mail gives me
- I'm too self-interested to -==- permission to reproduce it in any form
- speak for anyone else. -==- unless otherwise explicitly stated.
- =========================================================================
- Date: Wed, 16 Mar 1994 16:03:20 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Leonard Rosenthol <leonardr@NETCOM.COM>
- Subject: Re: Scripting Stuffit
-
- >I can now get my script to Unstuff items, but no
- >luck so far with unbinhexing them. I pretty much
- >cut and pasted the translater code right from the
- >sutffit examples, just changing a couple
- >variable names but I don't think I changed the functionality
- >of it at all.
- >
- One possibility is that your don't have a registered copy of
- StuffIt Lite, as the Translate command is only available in registered
- versions.
-
- Leonard
-
- -----------------------------------------------------------------------------
- Leonard Rosenthol Internet: leonardr@netcom.com
- Director of Advanced Technology AppleLink: MACgician
- Aladdin Systems, Inc. GEnie: MACgician
- =========================================================================
- Date: Wed, 16 Mar 1994 16:28:43 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Steve Zellers <steve_zellers@INETLINK.BERKSYS.COM>
- Subject: Re: Early observations on Po
-
- Reply to: RE>Early observations on Power
- >FinderMenus 3.0, however,
- >appears to crash in a very nasty way. This is a big disappointment,
- >but with J. Baxter's recent announcement of an upcoming native
- >Frontier port, I am a little consoled.
-
- I'm running FM 3.0 with now problems currently - try making it the last
- extension to load (zzFinderMenu 3.0)
-
- BTW: FinderMenu, which an invaluable (IMHO ;-) addition to Frontier is not a
- Userland product, and the code is copyright by myself - I've gotten much
- valuable advice from Userland, but they are in no way responsible for its
- support, I am. (Just want to clear that up so as to take some of the tech
- support load from their backs - it's their biggest TS task, unfortunately.)
-
- --smz
- =========================================================================
- Date: Thu, 17 Mar 1994 12:16:09 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "-s94098542-m.flanagan-ele-60-" <mpf@ACACIA.ITD.UTS.EDU.AU>
- Subject: Re: MacPPP OSAX under Frontier's FinderMenu
- In-Reply-To: <9403170212.AA01185@acacia.itd.uts.EDU.AU>; from "Fred Terry" at
- Mar 16, 94 04:44:10 pm
-
- >
- > > Where did you get the "Load OSAX droplet" from?
- > >
- >
- > I just checked and it isn't on gaea, though it is sitting on my Mac at home.
- > If you'll check the /frontier/applets/ directory of gaea.kgs.ukans.edu later
- > this evening, you'll find it there.
- >
- > Or someone might mail it to you......
- >
- > pf
- >
- >
- > +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- > pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
- >
- > "Bad spellers of the world, untie!"
- > --Graffito
- >
- what exactly does it do this load osax droplet?
-
-
- --
- Matthew Flanagan mpf@acacia.itd.uts.edu.au
-
- B.E. Computer Systems Engineering
- Support Advisor
- University of Technology Sydney
- =========================================================================
- Date: Thu, 17 Mar 1994 00:49:43 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: MacPPP OSAX under Frontier's FinderMenu
- In-Reply-To: Your message of "Thu,
- 17 Mar 94 12:16:09 EST." <9403170342.AA05309@lks.lks.csi.com>
-
- > what exactly does it do this load osax droplet?
-
- To quote from the description on CI$...
-
- Drop any file that contains an "osax" code extension on this droplet to install
- it in Frontier.root. Also parses the 'aete' resource and builds a set of glue sc
- ripts to call the osax code. If you have AppleScript, look in the Scripting Addi
- tions folder of the Extensions sub-folder of your System Folder. Lots of osax's
- there! Be sure to change the name of the file to be a valid UserTalk identifier
- before installing in Frontier. Now, if anyone comes up with a neat osax that we
- don't have a verb in Frontier, you're covered. DW
- =========================================================================
- Date: Thu, 17 Mar 1994 07:16:06 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jay Martin <jay_martin@POSTOFFICE.AIDT.EDU>
- Subject: Re> AppleScript and System 7 Pro
-
- The Apple Event manager is included in AppleScript 1.1 (I believe), so the
- extra extension is not needed. So, if you have 1.0, you need it.
-
- Jay
- +---------------------------------------+----------------------------------+
- | --------------+ Jay M. Martin | All ideas here are my own and |
- | +---------- | Alabama Industrial | in no way reflect my employer's. |
- | | ----------+ Development Training | martin@aidt.edu |
- | +---------------------------------- | (But what do they know?) |
- +---------------------------------------+----------------------------------+
-
- ------ From: Macintosh Scripting Systems, Mar 16, 1994 ------
-
- A colleague of mine who had AppleScript 1.0 and System 7.1 recently
- upgraded to System 7 Pro. I also have System 7 Pro and installed
- AppleScript 1.1 (from HyperCard 2.2) after getting 7 Pro. I can not find
- the extension "Apple Events Manager" anywhere on my hard disk, but it's
- icon still appears during startup. Is the Apple Event Manager incorporated
- as part of the system in System 7 Pro? Does someone with System 7.1 NEED
- the Apple Event Manager extension, or just the AppleScript extension?
- =========================================================================
- Date: Thu, 17 Mar 1994 08:45:06 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Graham Heyes <heyes@DAHP1.CEBAF.GOV>
- Subject: AppleScript, FileMakerPro and WordPerfect 3.0
-
- I am running AppleScript 1.1 on System 7.1 with most of the osax from gaea so I
- can do quite a few things from the sctipting language but I'm stuck on my
- latest project.
- I have put together an address book using FileMaker Pro (FMP) and wanted
- to script a FMP macro which would copy the address, salutation etc from the FMP
- record into a WordPerfect3.0 (WP3) letter. I thought that I would do this by
- copying the fields one by one onto the clipboard and pasting them into a WP3
- template. The paste would be achieved using the paste apple event 'misc' 'past'
- which I should be able to send from a FMP macro.
-
- It looks like WP3 doesn't accept the paste apple event so I thought that
- this would be a good place to use applescript. WP3 doesn't support the paste
- applescript command either but at least I can use the AutoType OSAX to do
- a command-v, sounds terrible I know but I can't think of a better thing to do.
- So now I have this FMP macro from hell which copies to the clipboard then runs
- an applescript applet to paste into WP3. There has to be a better way but I
- can't think of one.
-
- It seems bizzare to me that when I looka at the WP3 dictionary with the
- script editor there are strange commands to do with mail but nothing apparent
- for poking chunks of text into a documment. It is supposed to be a word
- processor. Surely this is also something that needs to be done frequently from
- scripts but I haven't found any good examples yet.
-
- I looked through "The TAO of Applescript" but there are no apparent
- examples of how to copy text from one application to another.
-
- Has anyone got any help or advice on how to go about this?
-
- Graham
-
- -<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-
- Graham Heyes,CEBAF,12000 Jefferson Ave,Newport News,VA 23606,Tel:(804) 249-7030
- =========================================================================
- Date: Thu, 17 Mar 1994 08:55:22 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Tom Lanning <tlanning@GTE.COM>
- Subject: Conversions
-
- Hello,
- Is it possible to provide user-defined type conversion of script objects
- in Apple Script. For example, if I have ...
-
- script bogus
- property contents:{}
- end script
-
- ... can I write a handler that is part of the script that will allow
- someone to write ...
-
- bogus as string
-
- I have several script objects that are "converted" to strings a lot, and
- using the "built-in" style of conversion looks better and is more
- consistent then writing something like this ...
-
- script bogus
- property contents:{}
-
- to asString()
- -- stuff
- end asString
- end script
-
- ... and is called like this ...
-
- bogus asString()
-
- ... instead of ...
-
- bogus as string
-
- Any suggestions?
-
- ----
- Tom Lanning
-
- +1.617.466.4221 / tlanning@gte.com
-
- GTE Laboratories Incorporated
- 40 Sylvan RD
- Waltham MA 02254 USA
- =========================================================================
- Date: Thu, 17 Mar 1994 10:34:38 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: argon lazer battlegrid <ub141@FREENET.VICTORIA.BC.CA>
- Subject: Re: Scripting Stuffit
-
- At 4:03 PM 3/16/94 -0800, Leonard Rosenthol wrote:
- >>I can now get my script to Unstuff items, but no
- >>luck so far with unbinhexing them. I pretty much
- >>cut and pasted the translater code right from the
- >>sutffit examples, just changing a couple
- >>variable names but I don't think I changed the functionality
- >>of it at all.
- >>
- > One possibility is that your don't have a registered copy of
- >StuffIt Lite, as the Translate command is only available in registered
- >versions.
-
- It is a registered version.
-
- Chris Fraser ub141@freenet.victoria.bc.ca cfraser@island.amtsgi.bc.ca
- Finger me here for my PGP public key--^
- "Note: Some very inexpensive pedals are not serviceable. Other pedals are
- theoretically possible to service, but seem designed to discourage it. When
- these need work, we suggest you work them into a garbage can, and get a new
- pair of pedals." Bridgestone Owner's Manual, Bridgestone Cycle USA.
- =========================================================================
- Date: Thu, 17 Mar 1994 18:48:21 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Chris Brannon <cbbst+@PITT.EDU>
- Subject: Anarchie Script
-
- Hey all,
-
- I was taking a look at the Download Script provided with Anarchie, and I
- found that AS 1.0 chokes on this line:
-
- set rn to open for access file theinput with write permission
-
- It expected an end of line when it encountered "access".
-
- What can I do to get the script to work?
-
-
-
- Regards,...Chris
- ---------------------------------------------------------------------------
- Christopher B. Brannon University of Pittsburgh
- cbbst+@pitt.edu Political Science
- =========================================================================
- Date: Thu, 17 Mar 1994 21:12:41 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jay Martin <jay_martin@POSTOFFICE.AIDT.EDU>
- Subject: Re> Anarchie Script
-
- ----
- set rn to open for access file theinput with write permission
- ^^^^^^^^^^^^^^^
-
- If I'm not mistaken, this command (osax) was added in AS 1.1 (I could be
- wrong, I didn't use AS 1.0 for very long).
-
- Jay
- =========================================================================
- Date: Thu, 17 Mar 1994 22:59:30 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Tom Donovan <donovan@COVIS.NWU.EDU>
- Subject: FM Pro AppleScript Examples
-
- >Anyone have any good example scripts using FileMaker?
- >
- >My main question is - how do you (or can you) specify a "whose" clause in a
- >get data statement. How do you find record(s) that contain a certain value in
- >one of the fields?
- >
- >Thanks,
- >Jay
- >+---------------------------------------+----------------------------------+
- >| --------------+ Jay M. Martin | All ideas here are my own and |
- >| +---------- | Alabama Industrial | in no way reflect my employer's. |
- >| | ----------+ Development Training | martin@aidt.edu |
- >| +---------------------------------- | (But what do they know?) |
- >+---------------------------------------+----------------------------------+
- >
-
- I found a nice collection of examples on America Online that I have sent to
- gaea--they should be showing up soon. I'm taking the author at his word
- and assuming it's OK to upload them.
-
- Here's the description from AOL:
-
- >Subj: FM Pro & AppleScript February 20, 1994
- >From: PackerDev
- >
- >File: FileMaker & AppleScript.sea (90831 bytes)
- >DL time (2400 baud): < 10 minutes
- >Download count: 574
- >
- >AUTHOR: J.Gagne
- >NEEDS: AppleScript System 1.0 or greater
- >
- >KEYWORDS: CLARIS FILEMAKER PRO APPESCRIPT EVENTS SCRIPTING APPLE EVENTS IAC
- >FRONTIER SCRIPTS
- >
- >This is a collection of FM Pro/AppleScript, examples that are supplied on the
- >Apple Developer AppleScript 1.0 Beta CD. I thought they would be of interest
- >to all and got permission from Apple to distribute them to all who would want
- >them.
- >
- >AppleScript lends awesome power to FileMaker, including condidtional scripting
- >and custom dialog boxes, as well as many quasi-relational capabilities. The
- >AppleScript kit can be purchased from APDA (Apple Programmers and Developers
- >Association), and Apple recently released the AppleScript Developers Kit but
- >decided not to include these. Too bad!
- >
- >Don't stay up too late with this stuff! If you want to see more of this type
- >of stuff I'd be happy to start uploading some of my scripts as well.
- >
- >Jeff Gagne
- >Packer Software,Inc.
- >
- >----------------------------------------------------------
- >The enclosed file(s) was(were) checked with Disinfectant 3.2 and found to be
- >free of infection.
- >Jeff Gagne, Product Development, Packer Support Area
- >---------------------------------------------------------
-
-
-
- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- Tom Donovan "Perhaps the most universal information trap is the...
- System Administrator trap of forgetting what it's like not to know. The
- CoVis Project minute we know something, we forget what it was like
- Northwestern Univ. not to know it."
- --Richard S. Wurman
- E-mail: donovan@covis.nwu.edu "Information Anxiety"
- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- =========================================================================
- Date: Thu, 17 Mar 1994 22:28:55 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Early observations on PowerPC compatibility with scripting
- tools
-
- At 11:09 3/16/94 -0500, David Myers wrote:
- >Works well; works reasonably fast (but hey, I just traded up from
- >an SE/30, so how would I know?). FinderMenus 3.0, however,
- >appears to crash in a very nasty way. This is a big disappointment,
- >but with J. Baxter's recent announcement of an upcoming native
- >Frontier port, I am a little consoled.
-
- If you are using the FinderMenu 3.0 as shipped with Frontier 3.0, you will
- find a crash as soon as Finder tries to draw its menus, if:
- (1) you use the iconic menu titles (ICON(resID)), and
- (2) you don't move the FinderMenu Prefs file into the Preferences folder
- on the machine you are running on (each Preferences folder if you play
- games with multiple Systems).
-
- The reason is an unfortunate oversight: the icon resources are stored in
- the Preferences file, and "FinderMenus 3.0" (which is really FinderMenus
- 2.0b7) assumes they exist. "FinderMenus 2.0b10" (which despite the
- numbering is later than FinderMenus 3.0, but wasn't tested enough to ship
- with Frontier 3.0 fixes that problem and a couple of others. I think gaea
- has it.
-
- >
- >AppleScript:
- >
- >The machine comes with Applescript 1.1 and something I believe called
- >"RISC Plug-In" (I am at work as I write this, so I can't check on the
- >full name). What exactly this "RISC Plug-In" does I can't say for
- >sure. Anybody know? I prefer Frontier, so I didn't do too much
- >playing around with AS.
-
- One must believe that the "RISC Plug-In" patches something to make
- AppleScript work (or work better) on a powerPC machine. There's a similar
- thing for the Finder.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- "This is the network of our disconnect"
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Fri, 18 Mar 1994 06:13:20 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Susan Foster <susan_foster@POSTOFFICE.AIDT.EDU>
- Subject: Droplet loses references
-
- I've created an AS droplet that takes one or more Informed Manager forms and
- generates a MacWrite Pro document with the data from the form(s). On my
- machine, where the script was compiled, everything's fine.
-
- On others' machines, EVERY time the script runs, it asks the user to find the
- Informed Manager and MacWrite Pro applications. Apparently, the references to
- the applications are being lost between runs. (If the script is recompiled on
- the other Mac, it only asks about the applications the first time it's run;
- from then on, it knows where they are.)
-
- It seems that this weirdness only affects droppables; when I take out the
- dropbox stuff, there's no reference problem.
-
- Has anybody else had this problem, or am I maybe doing something wrong?
-
- Thanks,
- Susan
-
- +---------------------------------------+----------------------------------+
- | --------------+ Susan Foster | All ideas here are my own and |
- | +---------- | Alabama Industrial | in no way reflect my employer's. |
- | | ----------+ Development Training | foster@aidt.edu |
- | +---------------------------------- | |
- +---------------------------------------+----------------------------------+
- =========================================================================
- Date: Fri, 18 Mar 1994 08:43:24 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Lewis <lewis@NETCOM.COM>
- Subject: Re: MacPPP OSAX under Frontier's FinderMenu
-
- >Where did you get the "Load OSAX droplet" from?
- >
- >Jeremy Quinn
- >
- CompuServe's UserLand forum. As I recall, it's in the UCMD/XCMD library.
-
- David
-
- ------------------------------------------------------------------------
- David Lewis lewis@netcom.com (408) 439-2374
- =========================================================================
- Date: Fri, 18 Mar 1994 10:48:32 PST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Michael Compton <compton@PTOLEMY.ARC.NASA.GOV>
- Subject: Droplet loses references
- In-Reply-To: Susan Foster's message of Fri,
- 18 Mar 1994 06:13:20 -0500
- <9403181449.AA24934@ptolemy.arc.nasa.gov>
-
- Susan,
- Is your droplet asking where the application is or asking the user to log into
- it? I had a similar situation until I installed the Auto-Guest init that
- supresses the dialog box that asks the user to log into the remote app.
-
- I don't know if this is your problem, but thought I'd chime in (I use
- Informed, Applescript, etc a lot and haven't really seen the problem you
- describe).
-
- Good luck,
-
- Michael Compton
- AI Research Branch M/S 269-2
- NASA Ames Research Center
- Moffett Field, CA 94035-1000
- phone: (415) 604-6776
- fax: (415) 604-3594
- internet: compton@ptolemy.arc.nasa.gov
- =========================================================================
- Date: Fri, 18 Mar 1994 12:13:06 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Ray <daver@NETCOM.COM>
- Subject: Auto-guest init - where?
-
- Where can I find the Auto-Guest init? I looked and it wasn't on gaea.
-
- Thanks,
-
- Dave Ray
- daver@netcom.com
- =========================================================================
- Date: Fri, 18 Mar 1994 12:52:40 PST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Michael Compton <compton@PTOLEMY.ARC.NASA.GOV>
- Subject: Auto-guest init - where?
- In-Reply-To: David Ray's message of Fri,
- 18 Mar 1994 12:13:06 -0800
- <9403182048.AA08570@ptolemy.arc.nasa.gov>
-
- I found it in the Info-Mac archives at sumex-aim.stanford.edu. It's probably
- other places, too. It's fairly old (1991) and unsupported, but seems to work
- very well. I'll upload it to gaea if that would be of interest to everyone.
-
- Michael Compton
- AI Research Branch M/S 269-2
- NASA Ames Research Center
- Moffett Field, CA 94035-1000
- phone: (415) 604-6776
- fax: (415) 604-3594
- internet: compton@ptolemy.arc.nasa.gov
- =========================================================================
- Date: Fri, 18 Mar 1994 09:50:17 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: FileMaker Pro examples
-
- At 16:19 3/16/94 -0500, Brian V. Hughes wrote:
- >>My main question is - how do you (or can you) specify a "whose" clause in a
- >>get data statement. How do you find record(s) that contain a certain value in
- >>one of the fields?
- >
- > tell app "FileMaker Pro"
- > show every record where cell "fieldname" contains "value"
- > end tell
- >
- > There are all kinds of variations on this, you can also do
- >combinations, and use things like "does not contain". This has to be one
- >of the coolest things about the Apple Event Object Model, IMO.
-
- I agree with Brian on the latter comment, but...
-
- For medium to large FileMaker databases, search time can become very long
- (I learned how to specifiy timeouts in AppleScript because of that). If
- that becomes a problem, try to express the search in a FileMaker
- script/macro thing, and trigger that from your AppleScript script. The
- diference in execution time can be considerable.
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- "This is the network of our disconnect"
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Fri, 18 Mar 1994 12:01:21 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Stephen Jonke <jonke@GSFC.NASA.GOV>
- Subject: ObjectMaster and AppleScript 1.1 syntax
-
- ObjectMaster has extensive support for AppleEvents, including the ability
- to add menus to the program (or add to existing menus) and have them send
- AppleScript (or MPW Scripts). Anyway, they have some examples of this
- which start up now that I have AppleScript. The catch is that they cough
- up. There's a file called "1-Definitions" in the AppleScript folder in the
- Starup Items folder (in Object Master). I found that I needed to add empty
- parenthesis after all the procedure names defined in the definitions file
- in order to get it to work. Is this a bug in AppleScript 1.1, or a change
- in syntax (or a stricter enforcement of syntax)?
-
- Steve
-
- ---------------------
- jonke@gsfc.nasa.gov
- ---------------------
- =========================================================================
- Date: Fri, 18 Mar 1994 17:59:53 MET
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Povl H. Pedersen" <pope@IMV.AAU.DK>
- Subject: Selecting FileMaker records using AS
-
- For a customer of mine I have made a longer AppleScript to generate some
- rather long reports. They get lots of data from a FileMaker database, and
- takes some seconds for every record (on a Q610). I will probably make it
- get repeating fialds as a list to speed it up.
-
- But the most annoying thing is that finding every record whose field "date"
- equals "0192" takes forever.
-
- Any good idea how to speed up finding the records you want ? FileMaker does
- it interactively in much lesser time. It looks as if the AppleScript is
- pulling the field over from each record, doing the selection on its own,
- and then telling FM if the record matches or not.
-
- The search can take a few minutes from AppleScript, and definitely under 5
- seconds in FileMaker.
-
- ---
- Povl H. Pedersen - Macintosh Consultant and Programmer
- System Administrator at the Aarhus Engineering School
- pope@imv.aau.dk (preferred) / povlphp@uts.uni-c.dk
-
- "Macintosh...for those who can see through Windows!"
- =========================================================================
- Date: Fri, 18 Mar 1994 08:00:05 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Frank Lowney <flowney@GC3.GAC.PEACHNET.EDU>
- Subject: new AE stuff in Eudora
-
- I noticed a new element in the Eudora1.4.1 dictionary, clas preference,
- which looks wonderfuly useful to me. There are 91 preferences most of
- which can be changed using AEs.
-
- The dictionary says that they can only be accessed by number and refers you
- to the Q&A stack which nicely enumerates and descibes them.
-
- So my queston is this, has anyone figured out how AppleScript might make
- changes to these items? I am particularly interested in the following
- tems:
-
- 3 POP account
- 5 Return adress
- 22 Include signature?
-
- Thanks for any light you may be able to shed on this.
- =========================================================================
- Date: Fri, 18 Mar 1994 15:49:25 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jody Otterness <JMOTTERNESS@STTHOMAS.EDU>
- Subject: Re: SIGNOFF SDU
-
- PLEASE SIGN ME OFF TOO. JMOTTERNESS
- =========================================================================
- Date: Fri, 18 Mar 1994 16:18:50 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Leonard Rosenthol <leonardr@NETCOM.COM>
- Subject: Re: new AE stuff in Eudora
-
- >So my queston is this, has anyone figured out how AppleScript might make
- >changes to these items? I am particularly interested in the following
- >tems:
- >
- You refer to them as preference x, where x is the number you want.
-
- Leonard
-
- -----------------------------------------------------------------------------
- Leonard Rosenthol Internet: leonardr@netcom.com
- Director of Advanced Technology AppleLink: MACgician
- Aladdin Systems, Inc. GEnie: MACgician
- =========================================================================
- Date: Fri, 18 Mar 1994 16:28:41 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Selecting FileMaker records using AS
-
- >For a customer of mine I have made a longer AppleScript to generate some
- >rather long reports. They get lots of data from a FileMaker database, and
- >takes some seconds for every record (on a Q610). I will probably make it
- >get repeating fialds as a list to speed it up.
- >
- >But the most annoying thing is that finding every record whose field "date"
- >equals "0192" takes forever.
- >
- >Any good idea how to speed up finding the records you want ? FileMaker does
- >it interactively in much lesser time. It looks as if the AppleScript is
- >pulling the field over from each record, doing the selection on its own,
- >and then telling FM if the record matches or not.
-
- It does take rather too long, doesn't it. Your surmise is quite
- reasonable, but not, as it happens, correct. The problem is that the
- search model assumed by the standard events in the Apple Event Registry is
- nothing like the search model used internally by FileMaker. The result is
- a lot of armwaving between the Object Support Library and FileMaker code.
- [It never gets back into the AppleScript system itself.]
-
- If possible in your situation, you should craft a FileMaker macro which
- does the search for you, and trigger than macro by name from AppleScript
- using do script. If you can make that work for your situation, it will be
- far faster than doing the search using the show event.
- --John
-
- [Above information second hand from a developer at Claris who observed a
- conversation on CompuServe (I think) about the slowness of the show event a
- couple of months ago.]
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- "This is the network of our disconnect"
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Fri, 18 Mar 1994 23:47:13 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jay Martin <jay_martin@POSTOFFICE.AIDT.EDU>
- Subject: Re> Droplet loses references
-
- Michael,
- I'm a co-worker of Susan's, and the answer is no. It asks for the location of
- Informed Manager and MacWrite Pro by putting up a SF dialog. It really is
- pretty strange. We wrote the script with an "on open" handler, and EVERYTIME
- it's run on a machine (besides the one that it was originally compiled on) it
- asks for this info. However, after we altered it so that it didn't have the
- on open handler and was just run as a normal AS application, it works fine.
-
- I'm going to do some more checking, but here's another tidbit: the droplets
- that shipped with AS 1.1 Dev Kit do the exact same thing. Everytime they run,
- they ask for the Scriptable Text Editor unless you open them with the script
- editor and recompile. We're stumped!
-
- Jay
-
- ------ From: Macintosh Scripting Systems, Fri, Mar 18, 1994 ------
-
- Susan,
- Is your droplet asking where the application is or asking the user to log
- into
- it? I had a similar situation until I installed the Auto-Guest init that
- supresses the dialog box that asks the user to log into the remote app.
-
- I don't know if this is your problem, but thought I'd chime in (I use
- Informed, Applescript, etc a lot and haven't really seen the problem you
- describe).
- =========================================================================
- Date: Sat, 19 Mar 1994 10:07:27 MET
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Povl H. Pedersen" <pope@IMV.AAU.DK>
- Subject: Re: Droplet loses references
-
- >On others' machines, EVERY time the script runs, it asks the user to find the
- >Informed Manager and MacWrite Pro applications. Apparently, the references to
- >the applications are being lost between runs. (If the script is recompiled on
- >the other Mac, it only asks about the applications the first time it's run;
- >from then on, it knows where they are.)
-
- I guess that you could give your applet a property containing the full path
- to the application (unless there is some OSAX to return the FSSpec of a
- specific creator usiong the desktop file as documented in IM VI). And then
- do something like:
-
- if theApp is not "" then
- -- find the app some way, and store in theApp
- end if
-
- if not fileExists(theApp) then
- -- find app just as above
- end if
-
- >It seems that this weirdness only affects droppables; when I take out the
- >dropbox stuff, there's no reference problem.
-
- no explanation for this.
-
- ---
- Povl H. Pedersen - Macintosh Consultant and Programmer
- System Administrator at the Aarhus Engineering School
- pope@imv.aau.dk (preferred) / povlphp@uts.uni-c.dk
-
- "Macintosh...for those who can see through Windows!"
- =========================================================================
- Date: Sat, 19 Mar 1994 10:20:39 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Andy J. Williams" <Andy.J.Williams@DARTMOUTH.EDU>
- Subject: MS: Admin Note
-
- Just a posting of the semi-regular reminder of how things work.
-
- Please remember to send all commands to LISTSERV@dartmouth.edu and not to the
- list itself. If the listserv is giving trouble and you want to talk to a
- human, then send mail to macscripting-request@dartmouth.edu.
-
-
- In short, the relevent addresses you need to know are as follows:
-
- * LISTSERV@dartmouth.edu
- the master controller. Mail is handled by computer
- so you have a limited set of commands you can send it.
- (Sending the HELP command will get you basics on this
- including instructions on how to sign off the list and
- set basic options for yourself like whether you want to
- receive the list in digest format or not)
-
- * MacScripting-Request@dartmouth.edu
- Fred Terry and Andy J. Williams, the list administrators.
- We can be contacted when you have a problem with the LISTSERV
- program above or when you have any administrative questions.
-
- * MacScripting@dartmouth.edu
- the distribution list. Mail sent here goes to
- all the recipients.
-
-
- If you have ANY questions at all please contact us at
- MacScripting-Request@dartmouth.edu.
-
- -A
- =========================================================================
- Date: Sat, 19 Mar 1994 15:43:15 CST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Peter Fleck - SMM <fleck@ASTRO.SPA.UMN.EDU>
- Subject: Scripting Books avail. retail
-
- I visited a local Borders Bookstore today and found both the Scripting
- Language Guide and the Scripting Additions Guide on the shelf. So both
- of these are available without buying the software package. If you're
- getting them this way, I would buy both. Forgot to get the price.
-
- Peter
- =========================================================================
- Date: Sat, 19 Mar 1994 17:09:17 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: FileMaker Whose Clauses
-
- >>Any good idea how to speed up finding the records you want ? FileMaker does
- >>it interactively in much lesser time. It looks as if the AppleScript is
- >>pulling the field over from each record, doing the selection on its own,
- >>and then telling FM if the record matches or not.
- >
- >It does take rather too long, doesn't it. Your surmise is quite
- >reasonable, but not, as it happens, correct. The problem is that the
- >search model assumed by the standard events in the Aple Event Registry is
- >nothing like the search model used internally by FileMaker. The result is
- >a lot of armwaving between the Object Support Library and FileMaker code.
- >[It never gets back into the AppleScript system itself.]
-
- Quite true, except for the details. ;)
-
- The OSL handling of whose clauses is simply the easy way of doing whose
- clauses. You don't have to do any work at all to support them (well, you
- have to use the OSL). What the OSL does is call your GetData handler for
- each property and then call your comparison proc to see if it satisfies the
- condition in the whose clause. If it does, it adds the object to a list
- and continues. This results in the OSL doing the entire search via the OSL
- callbacks.
-
- What the FileMaker guys should have done (uh oh, this could get lengthy ;)
- was supported whose clauses directly. This would mean that they would take
- the object specifier before the OSL gets its grubby code on it, turn it
- into one of their internal search data structures, do the search and return
- the results, without the "aid" of the OSL. It would result in much better
- response time. The OSL even has support for this so that you can simply
- tell it that you want to do the whose search and it will do everything else
- as usual.
-
- The OSL's support of whose clauses is great though, it just isn't meant to
- handle large numbers of objects. It does small groups of objects, such as
- windows and documents fine though, and absurdly easily too.
-
- Unfortunately, the FileMaker guys were one of the first to support
- AppleScript and they were so early that they shipped FileMaker before
- AppleScript was done. This resulted in them getting burned by some last
- minute changes and having a very unfortunate time on the bleeding edge.
- Throw in the fact that the main AE programmer had some serious health
- problems during that time and you've got a receipe for skipped features.
- Personally, I don't blame them. The trouble is that management should
- allocate some time to improve their AE support some more. Searching from
- AE is one of the places it really needs improvement.
-
- Just my 2 cents.
-
- Jon
- =========================================================================
- Date: Sat, 19 Mar 1994 18:32:38 -0700
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Brian Gaines <gaines@FSC.CPSC.UCALGARY.CA>
- Subject: CAD Packages
-
- Has anyone come across a CAD package which is AEvent responsive, even at
- the DoScript level? None of the major CAD vendors seem to have got round
- to making themselves AEvent aware, even though they all have powerful
- script languages of their own.
- b.
-
- Brian Gaines Knowledge Science Institute, University of Calgary
- gaines@cpsc.ucalgary.ca Calgary, Alberta, Canada T2N 1N4
- =========================================================================
- Date: Sat, 19 Mar 1994 20:47:29 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Benjamin Broder <bbroder@HSC.USC.EDU>
- Subject: NOW Up-To-Date Scripting
-
- Has anyone had any success with scripting NOW Up-To-Date,
- I can't seem to get much of anything to work. If anyone
- has a small example they could share, I'd appreciate it.
- I just want to
- 1. Create an event on a given date, with certain text/title, etc.
- 2. Get any events on a given date.
-
- Thanks.
-
- Ben
- --
- bbroder@hsc.usc.edu Benjamin Broder FAX (818) 457-4100
- USC Institute for Health Promotion and Disease Prevention Research
- 1000 S. Fremont Ave. #641, Alhambra, CA 91803-1358 (818) 457-4029
- =========================================================================
- Date: Sat, 19 Mar 1994 23:06:10 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Chuck Pliske <chuckp@U.WASHINGTON.EDU>
- Subject: Re: MACSCRPT Digest - 18 Mar 1994 to 19 Mar 1994
-
- Generic CADD is quite AEvent responsive. Unfortunately it's not actively
- supported.
-
- Chuck
-
- ------ From: Macintosh Scripting Systems, Sat, Mar 19, 1994 ------
-
- Has anyone come across a CAD package which is AEvent responsive, even at
- the DoScript level? None of the major CAD vendors seem to have got round
- to making themselves AEvent aware, even though they all have powerful
- script languages of their own.
- =========================================================================
- Date: Sun, 20 Mar 1994 13:35:32 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Weingarten <dweinga@UNIX.CC.EMORY.EDU>
- Subject: Re: Selecting FileMaker records using AS
-
- If you do use a Filemaker script to do the search for you, then you
- lose the ability to make the entire function automatic. For example,
- If you have the search find all the records with the date equal to "0192"
- and there are not any records with such data then a dialog box will ask
- if you wish to modify the request, continue, or cancel.
-
- I created a Database with over 20,000 records and wanted to automate certain
- tasks. I encontered the same problem using AppleScript to do the find.
- It doesn't use FileMaker Pro's Index when performing the search. I used a
- Filemaker script to do the search instead. This led me to the problem stated
- in the previous paragraph. I was able to get around this problem as stated
- below.
-
- You must start the search script by creating a "dummy record" and inputing the
- data you wish to search (this insures you will always find at least 1 record).
- Perform the search. Delete the last record (removes the "dummy record").
-
- Using the above procedure I am able to perform the find in a matter of seconds
- wit
- without the problem of automation.
-
- David Weingarten
- Emory University - Chemistry
- dweinga@emoryu1.cc.emory.edu
- AOL - Chemdw
- =========================================================================
- Date: Sun, 20 Mar 1994 15:25:26 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "David N. Blank-Edelman" <dnb@MESHUGGE.MEDIA.MIT.EDU>
- Subject: Re: NOW Up-To-Date Scripting
-
- At 8:47 PM 3/19/94 -0800, Benjamin Broder wrote:
- >Has anyone had any success with scripting NOW Up-To-Date,
-
- There's a whole set of example scripts (8 total) on AppleLink to do NUD 2.1
- scripting. Here's the path:
-
- Developer Support: AppleScript Talk: Script Exchange
-
- I have them and can forward if you need them. They all conform to the
- Schedule Suite (also on AppleLink: Developer Support: System 7 Talk: Apple
- Events Discussion: Apple Events Suite Development: Schedule Suite 1.0'1)
-
- Hope this helps.
- Peace,
- dNb
- =========================================================================
- Date: Sun, 20 Mar 1994 17:25:21 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Chong Li <lic@NEXTWORK.ROSE-HULMAN.EDU>
- Subject: test & ignore it
-
- test
- =========================================================================
- Date: Sun, 20 Mar 1994 17:46:11 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Chong Li <lic@NEXTWORK.ROSE-HULMAN.EDU>
- Subject: test & ignore it
-
- another test
- =========================================================================
- Date: Mon, 21 Mar 1994 00:05:30 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "William J. Jamison" <jami1@AOL.COM>
- Subject: Re: Selecting FileMaker records using AS
-
- Or: If you have QK2. How about an AE calling a QK2 shortcut that calls the FM
- script and then hits the Cancel button when and if the Cancel/Modify Find
- dialogue window comes up or better yet just a QK2 calling the FM script or a
- Tempo macro would be even better? Just razzing you. Interesting predicament.
- Another fine mess John's (John W. Baxter) gotten us into. Actually David ,
- the only real suggestion I might make would be to have FM send an AE back
- saying it didn't find any records and to send an AE to itself to hit the
- Cancel button, if that could be done, not sure. Is that possible John
- =========================================================================
- Date: Mon, 21 Mar 1994 03:02:01 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "William J. Jamison" <jami1@AOL.COM>
- Subject: Re: Rejected posting to MACSCRPT@DARTCMS1
-
- Possible dup because I also addressed it to "jwbaxter@pt.olympus.net"?
- =========================================================================
- Date: Mon, 21 Mar 1994 06:32:03 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Richard Millward <rsm@MCS.COM>
- Subject: replying to digest (not *exactly* scripting...)
-
- I'm relatively new to mailing lists. I've figured out how to set
- MacScripting to "digest" so it's easier to read, but now I'm not sure how
- to reply to a specific message within the digest using Eudora 1.4.2. Do I
- just copy/paste the relevant portions into a new message, or is there some
- more automated way that I'm not seeing? TIA.
-
- Richard Millward
- MCSNet/Chicago
- rsm@mcs.com
- =========================================================================
- Date: Mon, 21 Mar 1994 08:57:26 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: MacPPP OSAX under Frontier's FinderMenu
- In-Reply-To: Your message of "Fri,
- 18 Mar 94 08:43:24 PST." <9403181704.AA21152@lks.lks.csi.com>
-
- David Lewis writes,
-
- > >Where did you get the "Load OSAX droplet" from?
- > >
- > >Jeremy Quinn
- > >
- > CompuServe's UserLand forum. As I recall, it's in the UCMD/XCMD library.
- >
- > David
-
- You'll also find it on gaea.kgs.ukans.edu in
- /frontier/applets/LoadOSAXDroplet.sit.hqx.
-
-
- pf
-
-
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
-
- "Bad spellers of the world, untie!"
- --Graffito
- =========================================================================
- Date: Mon, 21 Mar 1994 09:04:00 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: mark stewart <mark_stewart@BIAD23.UTHSCSA.EDU>
- Subject: Re: Re- NOW Up-To-Date Scrip
-
- Reply to: RE>Re: NOW Up-To-Date Scriptin
- > >Has anyone had any success with scripting NOW Up-To-Date,
- >
- > There's a whole set of example scripts (8 total) on AppleLink to do NUD
- > 2.1 scripting. Here's the path:
- >
- > Developer Support: AppleScript Talk: Script Exchange
- >
- > I have them and can forward if you need them. They all conform to the
- > Schedule Suite (also on AppleLink: Developer Support: System 7 Talk:
- > Apple Events Discussion: Apple Events Suite Development: Schedule Suite
- > 1.0'1)
-
- Actually would it be possible to have them posted on gaea? NUD is pretty
- popular and it would be easier than mailing them to folks. I would be most
- interested in getting a copy any which way; they sound like just the thing for
- a project I'm working on.
-
- Mark Stewart
- BIAD-Research Imaging Center
- UTHSCSA
- stewart@uthscsa.edu
- =========================================================================
- Date: Mon, 21 Mar 1994 16:14:32 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Trude Olsen <TRUDEO@DHHALDEN.NO>
- Organization: Ostfold College
- Subject: Developer Support: AppleScript Talk: Script Exchange
-
- Can you forward them to me??
-
- Trude
-
-
- __ _-==-=_,-.
- /--`' \_@-@.--< Trude Olsen
- `--'\ \ <___/. Dyrendalsvn 13
- \ \\ " / 1778 HALDEN
- >=\\_/`<
- ____ /= | \_|/ tlf: 69 18 33 26
- _' `\ _/=== \___/
- -_ __/ //\./=/~\====\
- \ // / | ===:
- | ._/_,__|_ ==: __
- \/ \\ \\`--| / \\
- | _ \\: /==:-\
- `.__' `-____/ |--|==:
- \ \ ===\ :==:`-'
- _> \ ===\ /==/
- /==\ | ===\__/--/
- <=== \ / ====\ \\/
- _`-- \/ === \/--'
- | \ ==== |
- -`------/`--' |
- \___-'
- =========================================================================
- Date: Mon, 21 Mar 1994 09:35:09 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: mark stewart <mark_stewart@BIAD23.UTHSCSA.EDU>
- Subject: Re: Re- MacPPP OSAX under Fr
-
- Reply to: RE>Re: MacPPP OSAX under Front
- > You'll also find it on gaea.kgs.ukans.edu in
- > /frontier/applets/LoadOSAXDroplet.sit.hqx.
- >
- >
- > pf
-
- Yeah, that's where I found it. The archive only includes the droplet itself
- without any documentation for how to call osaxen from Frontier. Is it the same
- as calling a UCMD? Does the version on Compuserve include any docs?
-
- Mark Stewart
- BIAD-Research Imaging Center
- UTHSCSA
- stewart@uthscsa.edu
- =========================================================================
- Date: Mon, 21 Mar 1994 09:34:14 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: Developer Support: AppleScript Talk: Script Exchange
- In-Reply-To: Your message of "Mon,
- 21 Mar 94 16:14:32 +0100." <9403211527.AA07238@lks.lks.csi.com>
-
- Hi all,
-
- David sent them to me, and I'm contacting Now Software to see if I can put
- them on gaea. I'll let you know as soon as they are up.
-
- > Can you forward them to me??
- >
- > Trude
- >
- Cool sig, Trude. :-{)
-
- pf
-
-
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
-
- "Bad spellers of the world, untie!"
- --Graffito
- =========================================================================
- Date: Mon, 21 Mar 1994 09:45:28 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: mark stewart <mark_stewart@BIAD23.UTHSCSA.EDU>
- Subject: LoadOSAXDroplet docs?
-
- Reply to: LoadOSAXDroplet docs?
- > You'll also find it on gaea.kgs.ukans.edu in
- > /frontier/applets/LoadOSAXDroplet.sit.hqx.
- >
- >
- > pf
-
- Yeah, that's where I found it. The archive only includes the droplet itself
- without any documentation for how to call osaxen from Frontier. Is it the same
- as calling a UCMD? Does the version on Compuserve include any docs?
-
- Mark Stewart
- BIAD-Research Imaging Center
- UTHSCSA
- stewart@uthscsa.edu
- =========================================================================
- Date: Mon, 21 Mar 1994 10:18:02 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: Re- MacPPP OSAX under Fr
- In-Reply-To: Your message of "Mon,
- 21 Mar 94 09:35:09 +0800." <9403211553.AA07424@lks.lks.csi.com>
-
- Mark,
-
- > > You'll also find it on gaea.kgs.ukans.edu in
- > > /frontier/applets/LoadOSAXDroplet.sit.hqx.
- > >
- > >
- > > pf
- >
- > Yeah, that's where I found it. The archive only includes the droplet itself
- > without any documentation for how to call osaxen from Frontier. Is it the same
- > as calling a UCMD? Does the version on Compuserve include any docs?
- >
-
- No, it didn't (that version came straight from CI$). I'll get the
- description of the file and send it to you. As I remember it, you just drop
- the osax on it and the droplet creates a verb set for the osax in Frontier.
- But I'll admit that it's been quite a while since I played with it. Anyone
- else wanna comment?
-
- pf
- =========================================================================
- Date: Mon, 21 Mar 1994 08:28:56 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Re- MacPPP OSAX under Fr
-
- [Referring to the LoadOSAX droplet for Frontier]:
-
- >Yeah, that's where I found it. The archive only includes the droplet itself
- >without any documentation for how to call osaxen from Frontier. Is it the same
- >as calling a UCMD? Does the version on Compuserve include any docs?
-
- The droplet loads the osax's code into the Frontier database, and builds a
- script or scripts which send the various events defined in the Addition's
- 'aete' resource. For example, the "beep" Addition (not very interesting)
- produces a table at system.extensions.Beep. The table has three items:
-
- beep a script, reading
- on beep (n) << Beep 1 or more times.
- return (appleEvent (@Beep.code.AEVTsysobeep, 'syso', 'beep',\
- '----', long(n)))
-
- code a table, containing one item the binary object (typed as a UCMD,
- since functional Scripting Additions and Frontier UCMDs are the same [in
- many cases, the same source code can be used for either...exceptions being
- those which require resources].
-
- objectHeirarchy an outline (empty for Beep) which is a result of the
- new 'aete' parser. If the Addition defines a class in which to return its
- data, that should show up here. I think.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- "This is the network of our disconnect"
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Mon, 21 Mar 1994 10:37:36 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: content space in scriptable Finder
-
- Does anyone know how to use the content space property in the scriptable
- Finder? The description sounds like it allows selections in multiple windows,
- but I can't get it to work. I'm using scriptable Finder 1.1f2.
-
- pf
-
-
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
-
- "Bad spellers of the world, untie!"
- --Graffito
- =========================================================================
- Date: Mon, 21 Mar 1994 07:53:18 PDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: network_manager@ALDUS.COM
- Organization: Aldus Corporation, Seattle, WA
- Subject: NDN:LoadOSAXDroplet docs?
-
- Your mail to the Microsoft Mail Server could not be fully
- delivered! Reasons listed below! It has been deleted.
- =========================================================================
- Date: Mon, 21 Mar 1994 11:42:44 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Steve Alex <steve_alex@POSTOFFICE.AIDT.EDU>
- Subject: Re> MACSCRPT Digest - 18 Mar 1994 to 19 Mar 1994
-
- I've done quit a bit of scripting in Now Up-To-Date, at least to the limited
- support that they provide. You can do just about everything from AS. Someone
- has already told you about the example scripts from the Now folks. The Main
- thing to remember is that NUD documents (highest level) contain "calendars"
- (which is really the "category"), Calendars contain "events", events have the
- details, but also can have repeating items such as "Timeblocks". Descriptions
- may or may not be there and will cause some problems that you will probably
- have to use error trapping to get around.
-
- I've developed a Frontmost application that looks at all the public servers
- (by means of an open NUD application on a server that has all "calendars"
- open) and posts the current status (in/out stuff) to a tableserver database.
- If the NUD examples don't help you, I can send you more. The only real
- problem I've found is implementation of the "whose" clause that is a little
- strange. You can ask for all the events from a certain calendar and you can
- ask for all the events between two dates (using the weird whose clause in
- example 5), but you can't combine the statements and ask for all events from
- a specific calendar between two dates. You'll also have a lot of fun with
- dates!
-
- Good luck.
- Steve
-
- +---------------------------------------+----------------------------------+
- | --------------+ Steve Alex | All ideas here are my own and |
- | +---------- | Alabama Industrial | in no way reflect my employer's. |
- | | ----------+ Development Training | alex@aidt.edu |
- | +---------------------------------- | |
- +---------------------------------------+----------------------------------+
- =========================================================================
- Date: Mon, 21 Mar 1994 12:18:15 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: NOW UPD scripts
-
- Everyone,
-
- Now Software gave me the go ahead to post their sample scripts to gaea. You'll
- find them in
-
- gaea.kgs.ukans.edu//applescript/scripts/NUDScheduleSuite.hqx
- gaea.kgs.ukans.edu//applescript/scripts/NUDSamples.hqx
-
- Enjoy.
-
- pf
-
-
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
-
- "Bad spellers of the world, untie!"
- --Graffito
- =========================================================================
- Date: Mon, 21 Mar 1994 18:58:35 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Salih <msalih@CLUS1.ULCC.AC.UK>
- Subject: Error type 1
-
- Help
- I am statrting appleScript from zero.
- I have installed Apple script and started practicing using "The Tao of Apple
- Script".
-
- When I write the following command"
-
- "Set the content of Window 1 of Application " Scriptable Text Editor" to " XYZ"
-
- I have a crash with the message "
- " Application "Unkown" has unexpectedly quit because of type 1 error occured"
-
- This case does happen when I quit Apple Script and then try to reopen it and
- issue the above command ...
- In every time I have to RESTART in order to run the above command ...
- What have I done wrong ?!!
-
-
- --
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
- | Muaadh Salih Tel (UK) : 071 323 6226 |
- | |
- | Department of the Languages Fax (UK) : 071 436 3844 |
- | and the Cultures of the Near |
- | and Middle East |
- | |
- | School of Oriental and African Studies |
- | University of London Internet: msalih@clus1.ulcc.ac.uk |
- | Thornhaugh Street |
- | London WC1H OXG |
- |==============================================================
- =========================================================================
- Date: Mon, 21 Mar 1994 13:41:16 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Ray <daver@NETCOM.COM>
- Subject: Re: Error type 1
-
- Salih <msalih@CLUS1.ULCC.AC.UK> wrote:
-
- >"Set the content of Window 1 of Application " Scriptable Text Editor" to " XYZ"
- >
- >I have a crash with the message:
- >" Application "Unkown" has unexpectedly quit because of type 1 error occured"
- >
- >This case does happen when I quit Apple Script and then try to reopen it and
- > issue the above command ...
-
- I think you mean, whenever you try to run the Script Editor again, it crashes.
-
- >In every time I have to RESTART in order to run the above command ...
- >What have I done wrong ?!!
-
- If the Script Editor crashes, it is normal for it not to work again
- until you restart the machine.
-
- It is not normal for the Script Editor to crash. Some possible reasons could be:
-
- 1) You don't have all the parts of AppleScript installed. For system 7.0 you
- need AppleScript, Apple Event manager, and Quicktime. For system 7.1, you
- need AppleScript and Apple Event manager
-
- 2) There could be an init conflict. Try turning off other extentions and
- control panels
-
- 3) The memory allocated for Script Editor could be too small. Try allocating
- more memory from the "Get Info" box.
-
- 4) The system might become corrupted by running apps that aren't very
- system 7 savvy. Try rebooting, then run the Script Editor without
- anything else before it.
-
- 5) The computer may crash if it is very close to being out of RAM memory.
- Check the available memory from the "About this Macintosh" dialog.
- You should have at least 200k margin or you might run into problems.
-
- Also, I would recommend trying to send commands from the Script Editor one
- line at a time until you find which line is causing the problem. For example,
- I woulf first try:
-
- Tell app "Scriptable Text Editor"
- activate
- end tell
-
- If that works, then start adding to it, one line at a time, and run it
- each time:
-
- Tell app "Scriptable Text Editor"
- activate
- make window 1
- tell window 1
- set contents to "XYZ"
- end tell
- save window 1 as text
- quit
- end tell
-
-
- -Dave
- daver@netcom.com
- =========================================================================
- Date: Sun, 13 Mar 1994 23:36:36 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: PhotoFlash
-
- >>I believe
- >>that PhotoFlash from Apple did implement menu sharing, so I hope
- >>this indicates some level of corporate commitment for UserLand's
- >>product.
- >>
- > That was because Apple bought PhotoFlash from a Userland savvy
- >company.
-
- Come on Leonard, give us a plug at least. ;)
-
- PhotoFlash was written by Storm Technology (of which I am an employee and
- co-author of PhotoFlash) of Mountain View, CA. Apple co-developed
- PhotoFlash, which basically means that we wrote it and they are marketing
- it. They bought it because they liked the scriptability and were looking
- for an photo manipulation program for their new QuickTake digital camera.
-
- PhotoFlash itself is a scriptable photo-publishing program. It doesn't
- have editing capabilities, but it has everything you need to tweak photos,
- including sharpen, blur, resize, crop, rotate, contrast, and more. It runs
- PhotoShop plugins and is VERY fast. It launches quick and uses a very
- flexible and speedy VM scheme so that it flies.
-
- In addition, I've written some osaxen to control the QuickTake camera.
- These will ship with the PowerPC version of PhotoFlash sometime "soon".
- They allow you to download pictures, mount the camera on the desktop (like
- a disk drive), take pictures and interogate the camera about its status.
- It's pretty cool stuff!
-
- As for menu sharing, we implemented it and Apple didn't make us take it out. ;)
-
- Jon
-
- PS
-
- It is my understanding that because Hypercard is written in Pascal and
- Assembly, it cannot be ported to the PowerPC at this time. Perhaps once a
- Pascal compiler becomes available or it becomes worthwhile to convert the
- executable code directly, we will see a native version. Until then I doubt
- it will occur.
- =========================================================================
- Date: Mon, 21 Mar 1994 16:55:56 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Weingarten <dweinga@UNIX.CC.EMORY.EDU>
- Subject: applet to applet
-
- Does any one know the correct way to send a custom event from
- one applet to another?
-
- Thanks,
- David
-
- David Weingarten
- Emory University - Chemistry
- dweinga@emoryu1.cc.emory.edu
- AOL - Chemdw
- =========================================================================
- Date: Mon, 21 Mar 1994 15:21:29 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kee Nethery +1 510 843 6140 <kee@KAGI.COM>
- Subject: Frontmost saving variables (Q)
-
- I am working on creating a simple mail parser that reads mail, counts the
- messages that come in, replies to each message and deletes the original.
-
- I have a droplet running that does this but it resets the count or doesn't
- save the count when it dies. I'd like to save the count so that if the
- processor dies and I restart it, the count will continue.
-
- I have tried saving the window in Frontmost after altering the text in a
- textbox but that doesn't ride through a quit and restart. I don't want to
- save to a text file and then read the text file each time I restart but I'm
- beginning to think that is the only way to save data in a Frontmost
- application.
-
- Sure do like HyperCard for saving data in fields and retaining the
- information. Any suggestions for Frontmost? I am trying to protect against
- losing the count when the application crashes.
-
- Kee Nethery
-
- _________________________________________________________________
- Kagi Engineering, 1442-A Walnut #362, Berkeley, CA 94709-1405 USA
- =========================================================================
- Date: Mon, 21 Mar 1994 21:05:57 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Allan R. Crump" <jhhw@CRL.COM>
- Subject: Re: Frontmost saving variables (Q)
- In-Reply-To: <199403212323.AA00298@mail.crl.com>
-
- Try using a "Property". Either book 'Tao of Applescript' or 'The
- Complete AppleScript book' describes properties in detail. By using an
- item as a property (or counter), it behaves in much the way that a
- hypercard field works, retaining the value every time that the program is
- launched.
-
- You can control it dynamically in the program as well.
- Allan
- =========================================================================
- Date: Mon, 21 Mar 1994 21:11:40 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Ray <daver@NETCOM.COM>
- Subject: InterSLIP / AE problem?
-
- I have written a simple autodialer for InterSLIP using the scriptable app
- InterSLIP/AE. The script is an 'aplet' (saved as a stay-open application
- with Script Editor) that uses the on idle - end idle.
-
- The script runs fine, except that the line that tells InterSLIP / AE to quit
- causes InterSLIP to crash. If I leave InterSLIP / AE running after the
- connection is made and the droplet quits, everything is fine.
-
- Has anyone else had this problem?
-
- -Dave Ray
- daver@netcom.com
-
- Here is the script for the applet. It launches InterSLIP Setup, selects the
- 'connect' button (using the Autotype osax), then checks post status every
- 2 seconds. If a connection is made, the program quits. If the port is idle,
- the program selects the connect button again. It assumes that the reason
- it didn't connect is because it is busy (it doesn't actually check this.)
- It just keeps trying until the connection is made.
-
-
-
- global i
- set i to 1
- on idle
- if i = 1 then
- tell application "Finder Liaison 1.1"
- Open (a reference to File "Mac:Comm:TCP Tools:InterSLIP Setup")
- quit
- end tell
- set i to i + 1
- else if i = 2 then
- tell application "InterSLIP/AE" to set status to (Get Status ID)
- if status = 0 then
- AutoType "m" holding "control"
- else if status = 4 then
- --(The following line causes InterSLIP to crash)
- --tell application "InterSLIP/AE" to quit
- quit
- end if
- end tell
- end if
- return 2
- end idle
- =========================================================================
- Date: Mon, 21 Mar 1994 21:48:09 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: Native Hypercard
-
- I was stupid enough to say:
- >It is my understanding that because Hypercard is written in Pascal and
- >Assembly, it cannot be ported to the PowerPC at this time. Perhaps once a
- >Pascal compiler becomes available or it becomes worthwhile to convert the
- >executable code directly, we will see a native version. Until then I doubt
- >it will occur.
-
- Of course, as soon as I make a decidedly obvious statement like this, I
- hear from the rumor mill about the possibility that Hypercard will be
- ported to C in order to compile it native. As another friend points out,
- if that happens it might take longer than the appearance of the Metroworks
- Pascal compiler. So there is hope for a native Hypercard, just don't hold
- your breath. ;)
-
- Jon
- =========================================================================
- Date: Mon, 21 Mar 1994 21:48:17 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: Saving data in FrontMost
-
- >Sure do like HyperCard for saving data in fields and retaining the
- >information. Any suggestions for Frontmost? I am trying to protect against
- >losing the count when the application crashes.
-
- You might try storing data in a script property. If you have a script you
- are running, it should save itself when it quits, so you can store the
- property in there. The trouble with this is that the property gets reset
- when you recompile. So, I recommend this:
-
- Script 1:
-
- property foo : ""
-
- Save this as a compiled script named Foo. Don't ever recompile it.
-
- Script 2:
-
- set x to load script file "Foo"
- set oldData to x's foo -- or
- set oldData to foo of x -- either one works
- set x's foo to newData -- foo of x works too
- store script x in file "Foo" replacing yes
-
- Get the idea?
-
- Jon
- =========================================================================
- Date: Tue, 22 Mar 1994 00:54:41 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Error Messages
-
- If you get a rejected posting message when you submit something to the
- list, you need to update your addresses. These are the ones everyone
- should be using. It took me a couple of messages to realize that I was not
- doing something wrong. I suspect that the old address is forwarding
- messages twice somehow.
-
- Andy Williams, who must take a fair about of grief about his name, recently
- posted these but without the caveat that they are different and should be
- used immediately by everyone.
-
- * LISTSERV@dartmouth.edu
- the master controller. Mail is handled by computer
- so you have a limited set of commands you can send it.
- (Sending the HELP command will get you basics on this
- including instructions on how to sign off the list and
- set basic options for yourself like whether you want to
- receive the list in digest format or not)
-
- * MacScripting-Request@dartmouth.edu
- Fred Terry and Andy J. Williams, the list administrators.
- We can be contacted when you have a problem with the LISTSERV
- program above or when you have any administrative questions.
-
- * MacScripting@dartmouth.edu
- the distribution list. Mail sent here goes to
- all the recipients.
-
- Thanks and sorry for the repetition.
-
- Jon
- =========================================================================
- Date: Tue, 22 Mar 1994 10:51:38 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Salih <msalih@CLUS1.ULCC.AC.UK>
-
- Help
- I am statrting appleScript from zero.
- I have installed Apple script and started practicing using "The Tao of Apple
- Script".
-
- When I wrote the following command"
-
- "Set the content of Window 1 of Application " Scriptable Text Editor" to " XYZ"
-
- I have a crash with the message "
- " Application "Unkown" has unexpectedly quit because of type 1 error occured"
-
- This case does happen when I quit Apple Script and then try to reopen it and
- issue the above command ...
- In every time I have to RESTART in order to run the above command ...
- What have I done wrong ?!!
-
-
- --
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
- | Muaadh Salih Tel (UK) : 071 323 6226 |
- | |
- | Department of the Languages Fax (UK) : 071 436 3844 |
- | and the Cultures of the Near |
- | and Middle East |
- | |
- | School of Oriental and African Studies |
- | University of London Internet: msalih@clus1.ulcc.ac.uk |
- | Thornhaugh Street |
- | London WC1H OXG |
- |==============================================================
- =========================================================================
- Date: Tue, 22 Mar 1994 11:03:14 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Salih <msalih@CLUS1.ULCC.AC.UK>
- Subject: Error type1 and headache
-
- Help
- I am statrting appleScript from zero.
- I have installed Apple script and started practicing using "The Tao of Apple
- Script".
-
- When I wrote the following command"
-
- "Set the content of Window 1 of Application " Scriptable Text Editor" to " XYZ"
-
- I have a crash with the message "
- " Application "Unkown" has unexpectedly quit because of type 1 error occured"
-
- This case does happen when I quit Apple Script and then try to reopen it and
- issue the above command ...
- In every time I have to RESTART in order to run the above command ...
- What have I done wrong ?!!
-
- --
- +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
- | Muaadh Salih Tel (UK) : 071 323 6226 |
- | |
- | Department of the Languages Fax (UK) : 071 436 3844 |
- | and the Cultures of the Near |
- | and Middle East |
- | |
- | School of Oriental and African Studies |
- | University of London Internet: msalih@clus1.ulcc.ac.uk |
- | Thornhaugh Street |
- | London WC1H OXG |
- |==============================================================
- =========================================================================
- Date: Tue, 22 Mar 1994 09:18:09 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Stephen Jonke <jonke@GSFC.NASA.GOV>
- Subject: Re: Frontmost saving variables (Q)
-
- I don't know if there is something different about Frontmost, or if you
- don't know about properties.... If it's the former, I can't help! :) If
- it's the latter, then try using a property. A property retains it's value
- after the script quits.
-
- Steve
-
- ---------------------
- jonke@gsfc.nasa.gov
- ---------------------
- =========================================================================
- Date: Tue, 22 Mar 1994 09:29:15 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Leonard Rosenthol <leonardr@NETCOM.COM>
- Subject: Re: InterSLIP / AE problem?
-
- >I have written a simple autodialer for InterSLIP using the scriptable app
- >InterSLIP/AE. The script is an 'aplet' (saved as a stay-open application
- >with Script Editor) that uses the on idle - end idle.
- >
- Cool!!
-
- >The script runs fine, except that the line that tells InterSLIP / AE to quit
- >causes InterSLIP to crash. If I leave InterSLIP / AE running after the
- >connection is made and the droplet quits, everything is fine.
- >
- Yah, I know about it. It's a bug in IS/AE :(.
-
- Leonard
-
- -----------------------------------------------------------------------------
- Leonard Rosenthol Internet: leonardr@netcom.com
- Director of Advanced Technology AppleLink: MACgician
- Aladdin Systems, Inc. GEnie: MACgician
- =========================================================================
- Date: Tue, 22 Mar 1994 16:10:03 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Stephen Jonke <jonke@GSFC.NASA.GOV>
- Subject: Scriptable Telnet application?
-
- Does anyone know if there is a scriptable Telnet program available for the
- Mac? NCSA Telnet doesn't support AppleEvents, but what about commercial
- Telnet products (do they even exist?)
-
- Steve
-
- ---------------------
- jonke@gsfc.nasa.gov
- ---------------------
- =========================================================================
- Date: Tue, 22 Mar 1994 17:00:51 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Anarchie question....
-
- Why does Anarchie tell me that it doesn't understand the "quit"
- event, when it is listed in it's aete resource? It will let me do other
- stuff, but it won't take a simple "tell app "Anarchie" to quit"
- AppleScript statement. Thanks.
-
- -Hades
- =========================================================================
- Date: Tue, 22 Mar 1994 16:05:40 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jay Martin <jay_martin@POSTOFFICE.AIDT.EDU>
- Subject: Re> Scriptable Telnet application?
-
- Here's the best solution I've thought of (although I haven't done it yet):
- SitCOMM from Alladin. I've got VersaTerm, so I have the VersaTerm Telnet Tool
- for the comm toolbox. You _should_ be able to script SitCOMM to do stuff
- using this tool. Again, I haven't tried it yet (I'm waiting on SitCOMM). I
- don't know of any free Telnet tools for the comm toolbox, though.
-
- Jay
- +---------------------------------------+----------------------------------+
- | --------------+ Jay M. Martin | All ideas here are my own and |
- | +---------- | Alabama Industrial | in no way reflect my employer's. |
- | | ----------+ Development Training | martin@aidt.edu |
- | +---------------------------------- | |
- +---------------------------------------+----------------------------------+
-
- ------ From: Macintosh Scripting Systems, Mar 22, 1994 ------
-
- Does anyone know if there is a scriptable Telnet program available for the
- Mac? NCSA Telnet doesn't support AppleEvents, but what about commercial
- Telnet products (do they even exist?)
- =========================================================================
- Date: Tue, 22 Mar 1994 16:12:24 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jay Martin <jay_martin@POSTOFFICE.AIDT.EDU>
- Subject: Re> Anarchie question....
-
- It works with AS 1.1 and Anarchie 1.1.3. Maybe a previous version of one or
- the other?
-
- Jay
- +---------------------------------------+----------------------------------+
- | --------------+ Jay M. Martin | All ideas here are my own and |
- | +---------- | Alabama Industrial | in no way reflect my employer's. |
- | | ----------+ Development Training | martin@aidt.edu |
- | +---------------------------------- | (But what do they know?) |
- +---------------------------------------+----------------------------------+
-
- ------ From: Macintosh Scripting Systems, Mar 22, 1994 ------
-
- Why does Anarchie tell me that it doesn't understand the "quit"
- event, when it is listed in it's aete resource? It will let me do other
- stuff, but it won't take a simple "tell app "Anarchie" to quit"
- AppleScript statement. Thanks.
- =========================================================================
- Date: Tue, 22 Mar 1994 17:16:42 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Steven L. Rohall" <slrohall@TASC.COM>
- Subject: Re: Scriptable Telnet application?
-
- >Does anyone know if there is a scriptable Telnet program available for the
- >Mac? NCSA Telnet doesn't support AppleEvents, but what about commercial
- >Telnet products (do they even exist?)
- >
- >Steve
- >
- >---------------------
- > jonke@gsfc.nasa.gov
- >---------------------
-
- I've been using SITcomm with the TGE TCPtool. It allows me to open up a
- transparent connection to any port on any machine on the net (i.e., not
- just telnet protocol). I have an entry in SITcomm's address book which
- specifies one particular machine and port--I haven't tried changing those
- parameters on the fly with AppleScript yet.
-
- -Steve.
-
- +--------------------------------------------------------------+
- | Steven L. Rohall |
- | ________ _ ______ ______ |
- | 55 Walkers Brook Drive / / \ / / / / |
- | Reading, MA 01867-3297 / /___\ /______ / |
- | Tel: (617)942-2000 / / \ // |
- | Fax: (617)942-7100 / / \/______//______/ |
- | slrohall@tasc.com |
- | (MIME-conformant mail welcome.) |
- +--------------------------------------------------------------+
- =========================================================================
- Date: Tue, 22 Mar 1994 17:20:10 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: Re> Anarchie question....
- In-Reply-To: <no.id> from "Jay Martin" at Mar 22, 94 04:12:24 pm
-
- --Jay Martin wrote:
- >
- >It works with AS 1.1 and Anarchie 1.1.3. Maybe a previous version of one or
- >the other?
-
- Nope, I have AS 1.1 and Anarchie 1.1.3. It says Application
- "Anarchie" doesn't understand the quit message.
-
- -Hades
- =========================================================================
- Date: Tue, 22 Mar 1994 16:36:00 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jay Martin <jay_martin@POSTOFFICE.AIDT.EDU>
- Subject: Re> Re: Re> Anarchie question....
-
- Hmmm...did you try just that line? I tried the following script just as a
- test and it worked:
-
- tell application "Anarchie" to activate
- tell application "Anarchie" to quit
- tell application "Anarchie"
- activate
- quit
- end tell
-
- If there's nothing else in the script, then I have no idea. Anyone else?
-
- Jay
- +---------------------------------------+----------------------------------+
- | --------------+ Jay M. Martin | All ideas here are my own and |
- | +---------- | Alabama Industrial | in no way reflect my employer's. |
- | | ----------+ Development Training | martin@aidt.edu |
- | +---------------------------------- | (But what do they know?) |
- +---------------------------------------+----------------------------------+
-
- ------ From: Macintosh Scripting Systems, Mar 22, 1994 ------
-
- Nope, I have AS 1.1 and Anarchie 1.1.3. It says Application
- "Anarchie" doesn't understand the quit message.
- =========================================================================
- Date: Tue, 22 Mar 1994 17:40:44 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: Re> Re: Re> Anarchie question....
- In-Reply-To: <no.id> from "Jay Martin" at Mar 22, 94 04:36:00 pm
-
- --Jay Martin wrote:
- >
- >Hmmm...did you try just that line? I tried the following script just as a
- >test and it worked:
- >
- >tell application "Anarchie" to activate
- >tell application "Anarchie" to quit
- >tell application "Anarchie"
- > activate
- > quit
- >end tell
-
- The activate command works just fine, it's the quit command that
- gives the error. I'll try re-installing my copy of Anarchie to see if
- that makes any difference. Thanks...
-
- -Hades
- =========================================================================
- Date: Tue, 22 Mar 1994 15:03:19 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jerry Wilcox <Jerry.Wilcox@UCOP.EDU>
- Subject: Re: Re> Re: Re> Anarchie question....
-
- >Hmmm...did you try just that line? I tried the following script just as a
- >test and it worked:
- >
- >tell application "Anarchie" to activate
- >tell application "Anarchie" to quit
- >tell application "Anarchie"
- > activate
- > quit
- >end tell
- >
-
- As a datapoint, this script doesn't work for me -- I also get the message
- that Application Anarchie doesn't understand the quit message. Using
- Anarchie 1.1.3 and AS 1.1.
-
- Jerry
-
- -----
- Jerry Wilcox - Jerry.Wilcox@ucop.edu
- All opinions are mine alone - the University can speak for itself.
- =========================================================================
- Date: Tue, 22 Mar 1994 17:14:37 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Now Up to Date scripts
-
- In a message dated: Tue, 22 Mar 94 15:03:26 PST, Jeff Fischer sez
- >Fred:
- >
- >Thanks for posting the NUD scripts at gaea. Thought I'd mention (as
- >perhaps others have as well) that the Schedule Suite file is named
- >'ScheduleSuite.hqx', but you referred to it in the MACSCRPT mailing list
- >as being named 'NUDScheduleSuite.hqx'. I mention it in case you want to
- >either rename it or post a clarification to the list.
- >
-
- Yup. Just so's everyone knows the real name is now ScheduleSuite.hqx. I made
- the change yesterday afternoon when I was told that Jim Kaslik of Chenna wrote
- the suite. Since it isn't really Now's, I didn't think it appropriate to leave
- the NUD prepended. The file is still in the same directory.
-
- Thanks for reminding me to inform everyone, Jeff.
-
- Have a good un; I'm outta here.
-
- pf
- =========================================================================
- Date: Tue, 22 Mar 1994 15:48:53 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Re> Anarchie question....
-
- Jay Martin says
-
- >It works with AS 1.1 and Anarchie 1.1.3. Maybe a previous version of one or
- >the other?
- >
- >
- >> ------ From: Macintosh Scripting Systems, Mar 22, 1994 ------
- >>
- >> Why does Anarchie tell me that it doesn't understand the "quit"
- >>event, when it is listed in it's aete resource? It will let me do other
- >>stuff, but it won't take a simple "tell app "Anarchie" to quit"
- >>AppleScript statement. Thanks.
-
- Hmmm...Anarchie 1.1.3 rejects the quit event from AppleScript 1.1 for me,
- too. I had just moved Anarchie from one machine to another
- (8100)...bringing along the Preferences file didn't help...just tried that.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- "This is the network of our disconnect"
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Tue, 22 Mar 1994 15:53:07 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Re> Re: Re> Anarchie question....
-
- At 16:36 3/22/94 -0500, Jay Martin wrote:
- >Hmmm...did you try just that line? I tried the following script just as a
- >test and it worked:
- >
- >tell application "Anarchie" to activate
- >tell application "Anarchie" to quit
- >tell application "Anarchie"
- > activate
- > quit
- >end tell
- >
- >If there's nothing else in the script, then I have no idea. Anyone else?
-
-
- That variation also fails for me, on the quit (probably the first one).
- I'm running with Virtual Memory and the Modern Memory Manager on: perhaps
- that matters? Mac 8100.
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- "This is the network of our disconnect"
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Tue, 22 Mar 1994 16:10:49 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Re> Re: Re> Anarchie question....
-
- Curiouser and curiouser...
- Anarchie (1.1.3) was still running after refusing AppleScript's
- instruction to quit.
-
- So in Frontier, I executed
- anarchie.quit ()
- which Anarchie accepted happily and quit. My mind is looking somewhat
- boggled at the moment.
-
- [The sequence
-
- anarchie.launch()
- anarchie.quit()
-
- is also happy. But Script Editor still can't do it. Could it be that the
- 'aete' has been damaged, in a copy that is an ancestor of the copies those
- of us for whom it fails have (English teachers please ignore the prior
- mess). I got mine from Peter's directory on AMUG.]
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- "This is the network of our disconnect"
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Tue, 22 Mar 1994 20:30:27 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Benno Palmert <palmert@ISYS-HH.HANSE.DE>
- Subject: nested fileloops and file.move in Frontier 3.0
-
- What is going wrong:
- I wrote a Frontier 3.0 deskscript with two nested fileloops.
- The fileloop(f in path) is looping through a folder, designed
- to first find a folder, then get its name, go to the inner loop,
- loop through the same folder again to find files,
- beginning with the same characters.
- The first fileloop should find only folders, get their names
- and then go to the inner loop looking for filenames beginning
- with the same characters. When the script encounters identical names,
- the files are moved (in the inner fileloop) inside the previous
- found folder with the file.move() function.
-
- After the first file was moved, and the inner loop
- doesn't find more matches the loop returns to the outer loop,
- and than the outer loop reports an error: "File ... not found!"
- This happens only when using file.move() with file.copy() its working. i
- Apparently the outer loop expects some file, but can't find it because the
- file.move() function changed the list or order of files - perhaps?
-
- I know, I can use the new list verb in Frontier 3.0 to get
- a list of all folders, and then use only one fileloop.
- But I want to understand why Frontier is reporting this
- error and how I can bypass it.
-
- thanks,
- Benno Palmert
- palmert@isys-hh.hanse.de
- =========================================================================
- Date: Tue, 22 Mar 1994 16:46:18 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Leonard Rosenthol <leonardr@NETCOM.COM>
- Subject: Re: Re> Scriptable Telnet application?
-
- >Here's the best solution I've thought of (although I haven't done it yet):
- >SitCOMM from Alladin. I've got VersaTerm, so I have the VersaTerm Telnet Tool
- >for the comm toolbox. You _should_ be able to script SitCOMM to do stuff
- >using this tool. Again, I haven't tried it yet (I'm waiting on SitCOMM). I
- >don't know of any free Telnet tools for the comm toolbox, though.
- >
- SITcomm works quite nicely over Telnet (with any of the available
- Telnet tools) so that is indeed your best bet!
-
- Leonard
-
- -----------------------------------------------------------------------------
- Leonard Rosenthol Internet: leonardr@netcom.com
- Director of Advanced Technology AppleLink: MACgician
- Aladdin Systems, Inc. GEnie: MACgician
- =========================================================================
- Date: Wed, 23 Mar 1994 09:54:42 +0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Craig Richmond <craig@ECEL.UWA.EDU.AU>
- Subject: Re: Anarchie question....
-
- At 5:00 PM 3/22/94 -0500, Brian V. Hughes wrote:
- > Why does Anarchie tell me that it doesn't understand the "quit"
- >event, when it is listed in it's aete resource? It will let me do other
- >stuff, but it won't take a simple "tell app "Anarchie" to quit"
- >AppleScript statement. Thanks.
-
- I know Peter Lewis used to read this list but got scared off by all the
- traffic, so I sent him the question and here is the reply.
-
- I know the next version is just about ready for release so don't inundate
- him with requests for the beta release. If it isn't essential for you just
- hang back a week or two and it will be out. It has nonymous logins :-) (as
- opposed to anonymous ones)
-
- Craig
-
- Peter Lewis wrote:
-
- >>tell application "Anarchie" to quit
-
- >That variation also fails for me, on the quit (probably the first one).
- >I'm running with Virtual Memory and the Modern Memory Manager on: perhaps
- >that matters? Mac 8100.
-
- It's very simple, it's a bug. I used core instead of CoRe or vice-versa.
- Anyway, it'll be fixed in the next version (indeed it's fixed in the latest
- version sent to registered users on my beta list). If you want to try it
- out, mail me (which is generally a better way of finding solutions to
- program-specific problems anyway).
-
- --
- Craig Richmond, Computer Officer, ECEL Computing Services +61 9 380 1405
- The University of Western Australia or 380 3860 Email for FAX Number
- craig@ecel.uwa.edu.au Dvorak Keyboards RULE! "Messes are only acceptable
- if users make them. Applications aren't allowed this freedom" I.M.VI 2-4
- =========================================================================
- Date: Tue, 22 Mar 1994 21:41:51 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "William J. Jamison" <jami1@AOL.COM>
- Subject: Re: nested fileloops and file.move in Frontier 3.0
-
- setPath!
- =========================================================================
- Date: Tue, 22 Mar 1994 21:57:06 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Penelope Jones <penjones@OTC.FSU.EDU>
- Subject: Filemaker Pro Over A Networ
-
- Filemaker Pro Over A Network
- I am interested in using applescript to exchange records between two files
- across a network. Would someone please share the syntax for opening a database
- across a network.
-
- ********************************************************************************
- Penelope Jones Internet: penjones@otc.fsu.edu
- Florida State University AT&Tnet: (904) 644-PENY
- Telecommunications, B-72 FAXnet: (904) 644-4554
- Tallahassee, FL 32306-2035
-
- ********************************************************************************
- =========================================================================
- Date: Tue, 22 Mar 1994 20:27:45 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: nested fileloops and file.move in Frontier 3.0
-
- At 20:30 3/22/94 +0100, Benno Palmert wrote:
-
- >I wrote a Frontier 3.0 deskscript with two nested fileloops.
- >The fileloop(f in path) is looping through a folder,
-
- etc.
-
- I have constructed a script here which behaves as you say. I don't think
- it should behave that way. I have put a copy of the script into the
- CompuServe forum, addressed to Doug Baron (same subject you used there).
- Doug should see the messages sometime Wednesday.
-
- In the meantime, I think the work around would be to make two passes
- First: construct a list of files which need to be moved (a two-level
- fileloop nest, which would build the list).
- Second: a loop which moves each file in the list into the right folder.
-
- --John
-
- --John W. Baxter Port Ludlow, WA USA jwbaxter@pt.olympus.net
- UserLand Software support
- =========================================================================
- Date: Tue, 22 Mar 1994 20:32:34 PST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: SteakFace <asmith@PRODIGY.BC.CA>
- Subject: Two questions in an attempt to script Eudora/MacPPP
-
- I'm trying to write my first script that will start up MacPPP, dial in,
- establish, start Eudora, check for mail, and then disconnect MacPPP.
-
- I've run into a problem gettin MacPPP to wait until all the mail has been
- transfered before dropping the link.
-
- 1. Is there a way to put a "wait" into a script? I can't find a reference to
- this in The Complete AS Handbook.
-
- 2. Just how does the "notify" work in the Eudora suite? I found it in the
- apps dictionary, but haven't sussed it's use yet. Can you check for a
- "the mail has all arrived" notice? Something linked to the notification
- that Eudora does itself that can be used to trigger the end of the script.
-
- Any help appreciated.
-
- Cheers
- SteakFace
-
-
-
- =================================================================
- SteakFace graphic designer - media manipulator - bad mood guy
- datapanik asmith@prodigy.bc.ca
- Vancouver, Canada
- =================================================================
- My cat would like to know why it is that we humans are so willing
- to lick each other's genitals, but we won't lick our own.
- =========================================================================
- Date: Tue, 22 Mar 1994 20:39:17 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Filemaker Pro Over A Networ
-
- At 21:57 3/22/94 +0000, Penelope Jones wrote:
- >Filemaker Pro Over A Network
- >I am interested in using applescript to exchange records between two files
- >across a network. Would someone please share the syntax for opening a database
- >across a network.
-
- Hi...
- Assuming that the remote volume is already mounted (left as an exercise
- for the reader ;-) ), try something like
-
- tell application "FileMaker Pro"
- activate
- Open file "HD:FileMaker:JWB" of machine "JWB"
- end tell
-
-
- You can specify the network zone, if needed:
- file "HD:FileMaker:JWB" of machine "JWB" of zone "Foo"
-
- [I finally got one right the first try!]
- --John
-
- --John W. Baxter Port Ludlow, WA USA jwbaxter@pt.olympus.net
- UserLand Software support
- =========================================================================
- Date: Wed, 23 Mar 1994 10:13:33 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Ralf Sigmund <nhcdrsig@RRZN-USER.UNI-HANNOVER.DE>
- Subject: Selecting FileMaker records using AS
-
- >For medium to large FileMaker databases, search time can become very long
- >Y(I learned how to specifiy timeouts in AppleScript because of that). If
- >that becomes a problem, try to express the search in a FileMaker
- >script/macro thing, and trigger that from your AppleScript script. The
- >diference in execution time can be considerable.
- > --John
- Having a database with 6400 records the difference in excution speed is 2
- seconds to 8 Minutes....
-
- How can I tell FMpro for which term in which field I would like to search ?
-
- Is there something like an internal variable "theSearchItem" in Filemaker pro?
-
- nhcdrsig@rrzn-user.uni-hannover.de (Ralf Sigmund)
- Tel.: 0511-4584229
- =========================================================================
- Date: Wed, 23 Mar 1994 07:34:02 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jay Martin <jay_martin@POSTOFFICE.AIDT.EDU>
- Subject: Re> Re: Anarchie question....
-
- >Peter Lewis wrote:
-
- >>>tell application "Anarchie" to quit
-
- >>That variation also fails for me, on the quit (probably the first one).
- >>I'm running with Virtual Memory and the Modern Memory Manager on: perhaps
- >>that matters? Mac 8100.
-
- >It's very simple, it's a bug. I used core instead of CoRe or vice-versa.
- >Anyway, it'll be fixed in the next version (indeed it's fixed in the latest
- >version sent to registered users on my beta list). If you want to try it
- >out, mail me (which is generally a better way of finding solutions to
- >program-specific problems anyway).
-
- OK. So why does it work for me? I tried it AGAIN this morning, making sure it
- was Anarchie 1.1.3, and it was. And it worked. Can anyone explain? Peter's
- explanation implies that it doesn't work at all, but I swear mine does!
-
- Jay
- +---------------------------------------+----------------------------------+
- | --------------+ Jay M. Martin | All ideas here are my own and |
- | +---------- | Alabama Industrial | in no way reflect my employer's. |
- | | ----------+ Development Training | martin@aidt.edu |
- | +---------------------------------- | |
- +---------------------------------------+----------------------------------+
- =========================================================================
- Date: Wed, 23 Mar 1994 07:38:17 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jay Martin <jay_martin@POSTOFFICE.AIDT.EDU>
- Subject: Re: Re> Scriptable Telnet application?
-
- > SITcomm works quite nicely over Telnet (with any of the available
- >Telnet tools) so that is indeed your best bet!
-
- Sorry, Leonard, I had the capitalization wrong for SITcomm! Then again, I was
- lucky to spell it right... ;-)
-
- Jay
- +---------------------------------------+----------------------------------+
- | --------------+ Jay M. Martin | All ideas here are my own and |
- | +---------- | Alabama Industrial | in no way reflect my employer's. |
- | | ----------+ Development Training | martin@aidt.edu |
- | +---------------------------------- | |
- +---------------------------------------+----------------------------------+
- =========================================================================
- Date: Wed, 23 Mar 1994 10:36:25 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Lee K. Hoong" <lhoong@EMORYU1.CC.EMORY.EDU>
- Subject: Re: Selecting FileMaker records using AS
-
- >
- >How can I tell FMpro for which term in which field I would like to search ?
- >
- >Is there something like an internal variable "theSearchItem" in Filemaker pro?
-
- If you are searching for a specific item in a specific field each time,
- this can be incorporated into the FileMaker script via the ScriptMaker.
- Look in the manuals for details.
-
- Lee.
-
- Lee K. Hoong
- Dept. of Chemistry, Emory University
- Internet: lhoong@unix.cc.emory.edu | America On-line: LHOONG
- Disclaimer: I speak for myself only, not for Emory University
- =========================================================================
- Date: Wed, 23 Mar 1994 10:23:52 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Tom Donovan <donovan@COVIS.NWU.EDU>
- Subject: Re: Two questions in an attempt to script Eudora/MacPPP
-
- >I'm trying to write my first script that will start up MacPPP, dial in,
- >establish, start Eudora, check for mail, and then disconnect MacPPP.
- >
- >I've run into a problem gettin MacPPP to wait until all the mail has been
- >transfered before dropping the link.
- >
- >1. Is there a way to put a "wait" into a script? I can't find a reference t=
- o
- > this in The Complete AS Handbook.
- >
- >2. Just how does the "notify" work in the Eudora suite? I found it in the
- > apps dictionary, but haven't sussed it's use yet. Can you check for a
- > "the mail has all arrived" notice? Something linked to the notification
- > that Eudora does itself that can be used to trigger the end of the scrip=
- t.
- >
- >Any help appreciated.
- >
- >Cheers
- >SteakFace
-
- What follows is a sample script for a "Notify" applet that came from the
- list a while ago. I'm afraid I don't know who originally sent it, so I
- can't give credit where it is due.
-
-
- on =ABevent CSOmeNot=BB msgList
-
- --Respond to notification event here
-
- end =ABevent CSOmeNot=BB
-
- -- Below requires the location of the Notify applet, assumed "Hard Disk:Noti=
- fy"
-
- on run
- tell application "Eudora"
- Please Notify alias "Hard Disk:Notify" with Notify
- end tell
- end run
-
-
- on quit
- tell application "Eudora"
- Please Notify alias "Hard Disk:Notify" without Notify
- end tell
- continue quit
- end quit
-
-
- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- Tom Donovan "Perhaps the most universal information trap is the...
- System Administrator trap of forgetting what it's like not to know. The
- CoVis Project minute we know something, we forget what it was like
- Northwestern Univ. not to know it."
- --Richard S. Wurman
- E-mail: donovan@covis.nwu.edu "Information Anxiety"
- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- =========================================================================
- Date: Wed, 23 Mar 1994 08:18:43 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Allan R. Crump" <jhhw@CRL.COM>
- Subject: Modeless Dialog Applescript
-
- Has anyone out there created an applet or script which can display a
- modeless dialog window ? I need to finish up a current project which
- will allow the user to either ignore a posted message and click back to
- the desktop or other application, leaving the dialog box showing. I
- cannot do this with a modal dialog box because it expects to be dismissed
- after displaying itself.
-
- I would appreciate any suggestions.
- Allan
- =========================================================================
- Date: Wed, 23 Mar 1994 09:17:49 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Selecting FileMaker records using AS
-
- At 10:13 3/23/94 +0100, Ralf Sigmund wrote:
- [quoting me]
- >>For medium to large FileMaker databases, search time can become very long
- >>Y(I learned how to specifiy timeouts in AppleScript because of that). If
- >>that becomes a problem, try to express the search in a FileMaker
- >>script/macro thing, and trigger that from your AppleScript script. The
- >>diference in execution time can be considerable.
- >> --John
- >Having a database with 6400 records the difference in excution speed is 2
- >seconds to 8 Minutes....
- >
- >How can I tell FMpro for which term in which field I would like to search ?
-
- If the search you need to do is completely different each time, I don't
- have a good idea. At the other end of the scale, of course, would be one
- of 6 or 7 "canned" searches, each with its own FileMaker macro.
-
- The middle ground is interesting, and I haven't explored it (my FileMaker
- native scripting experience is very small). It might be useful to open a
- second database, whose sole function is to carry parameter data from your
- AppleScript or Frontier scripts into FileMaker in a known place where your
- FileMaker scripts can access it. I haven't explored that idea.
-
- >Is there something like an internal variable "theSearchItem" in Filemaker pro?
-
- Not that I know of, sorry to say.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- "This is the network of our disconnect"
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Wed, 23 Mar 1994 09:35:25 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Re> Re: Anarchie question....
-
- >OK. So why does it work for me? I tried it AGAIN this morning, making sure it
- >was Anarchie 1.1.3, and it was. And it worked. Can anyone explain? Peter's
- >explanation implies that it doesn't work at all, but I swear mine does!
-
- Pure speculation: you compiled the script in question with an older
- version of Anarchie which had the 'aete' correct, or didn't mention quit
- explicitly at all.
-
- [Try making a copy (so as not to damage your working one) of the script,
- and recompiling the copy.]
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- "This is the network of our disconnect"
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Wed, 23 Mar 1994 12:19:17 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jay Martin <jay_martin@POSTOFFICE.AIDT.EDU>
- Subject: Re> Re: Re> Re: Anarchie question....
-
- Nope. Here is the exact script that I typed in:
-
- tell application "Anarchie" to activate
- tell application "Anarchie" to quit
-
- I then checked the syntax, and ran the script. Anarchie started up, then
- quit. VERY STRANGE!!!
-
- BTW, here are the dates for my copy of Anarchie:
-
- Created: Feb 23, 1994, 1:13PM
- Modified: Feb 23, 1994, 1:20PM
-
- Jay
- +---------------------------------------+----------------------------------+
- | --------------+ Jay M. Martin | All ideas here are my own and |
- | +---------- | Alabama Industrial | in no way reflect my employer's. |
- | | ----------+ Development Training | martin@aidt.edu |
- | +---------------------------------- | |
- +---------------------------------------+----------------------------------+
-
- ------ From: Macintosh Scripting Systems, Mar 23, 1994 ------
-
- Pure speculation: you compiled the script in question with an older
- version of Anarchie which had the 'aete' correct, or didn't mention quit
- explicitly at all.
-
- [Try making a copy (so as not to damage your working one) of the script,
- and recompiling the copy.]
- --John
- =========================================================================
- Date: Wed, 23 Mar 1994 11:00:51 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Re> Re: Re> Re: Anarchie question....
-
- >Nope. Here is the exact script that I typed in:
- >
- >tell application "Anarchie" to activate
- >tell application "Anarchie" to quit
- >
- >I then checked the syntax, and ran the script. Anarchie started up, then
- >quit. VERY STRANGE!!!
- >
- >BTW, here are the dates for my copy of Anarchie:
- >
- >Created: Feb 23, 1994, 1:13PM
- >Modified: Feb 23, 1994, 1:20PM
-
- The dates here are the same.
-
- The above script still fails here. But, as expected, this one works:
-
- activate application "Anarchie"
- quit application "Anarchie"
-
- That's because AppleScript uses its own knowledge of the quit command to
- create the event in the latter case (we're outside any "tell" here). I
- think.
-
- Anyhow, the above seems to point to the workaround. Others???
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Wed, 23 Mar 1994 21:02:55 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Ralf Sigmund <nhcdrsig@RRZN-USER.UNI-HANNOVER.DE>
- Subject: Re Re: Selecting FileMaker records using AS
-
- >At 10:13 3/23/94 +0100, Ralf Sigmund wrote:
- >[quoting me]
- >>>For medium to large FileMaker databases, search time can become very long
- >>>Y(I learned how to specifiy timeouts in AppleScript because of that). If
- >>>that becomes a problem, try to express the search in a FileMaker
- >>>script/macro thing, and trigger that from your AppleScript script. The
- >>>diference in execution time can be considerable.
- >>> --John
- >>Having a database with 6400 records the difference in excution speed is =
- 2
- >>seconds to 8 Minutes....
- >>
- >>How can I tell FMpro for which term in which field I would like to search =
- ?
- >
- >If the search you need to do is completely different each time, I don't
- >have a good idea. At the other end of the scale, of course, would be one
- >of 6 or 7 "canned" searches, each with its own FileMaker macro.
- >
-
- It is unfotunatlely always completely different. The FMpro Database is a
- Database of chemical compounds and their physical properties.
- What I am trying to do is to retrive the physical data belonging to an
- given chemical compound from within an other application (( CSC ChemFinder
- plus 2.0))
- =46or example I just type "Methanol" to the name field in Chem Finder=B4s
- database and an script attached to this field fills in the missing data
- into the chem finder database from the FilemakerPro database....
-
- --- Ralf
-
- nhcdrsig@rrzn-user.uni-hannover.de (Ralf Sigmund)
- Tel.: 0511-4584229
- =========================================================================
- Date: Thu, 24 Mar 1994 11:42:14 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Myers <myers@ACEC.COM>
- Subject: Frontier: Launching scripts into background threads
-
- Is it possible to launch a Frontier script into a background thread? I
- make heavy use of FinderMenus,
- but one of the problems with this is that whenever a long, complex script
- is launched by one of my
- FinderMenus, all the FinderMenus become unavailable until the script
- terminates. Is there anything
- I can do to make the FinderMenu scripts run in a background thread, thereby
- returning me to
- FinderMenus immediately?
-
- -David.
- =========================================================================
- Date: Thu, 24 Mar 1994 11:13:02 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: gaea change
-
- Morning everyone,
-
- Lee Hoong was initially confused by the format of the ScheduleSuite file (it's
- a SuperViewer file) so I decided to head off future problems. I've combined
- the document with a Read Me file and the free to distribute Viewer and
- re-uploaded them to gaea. Since it really is documentation, I shoved it in the
- /applescript/docs directory.
-
- pf
-
-
-
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- Fred Terry Cadence Design Systems pfterry@lks.csi.com +1 913 841 1283
- =========================================================================
- Date: Thu, 24 Mar 1994 15:47:53 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "William J. Jamison" <jami1@AOL.COM>
- Subject: Authorware print docs scripts
-
- I am looking for _any_ Authorware scripts, but more specifically printing
- scripts that will allow printing without actually ever leaving Authorware.
- Needed for printing coupons, maps, for a 24-hour City Hall kiosk. Frontier,
- QuicKeys, AppleScript, anything. Would there be anything on gaea? How do I
- access gaea.
-
- Thanks,
-
- Bill Jamison
- City of Longview
- 1-206-577-3392
- fax 577-3388
- AOL - Jami1
- =========================================================================
- Date: Thu, 24 Mar 1994 14:57:13 CST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Kenneth J. Fox" <kjfox@MKE.AB.COM>
- Subject: Syntax checking on dynamic references
-
- Hi,
- Being somewhat of a recent convert from 100% HyperTalk to
- a mix of AppleScripting, I am having a problem with
- AppleScript's ability to check syntax of some of my handlers
-
- I'm writing some applications that require a tell
- to reference a remote machine. Looking ahead to the day when
- either the name of the target machine or zone changes, I'd
- like to read the names of these out of fields and then use these
- variables in the tell such as:
-
- set theMachine to card field "machine"
- set theZone to card field "zone"
-
- tell application "Notify Server" of machine theMachine of zone theZone
- Page me Message "help"
- end tell
-
- The syntax appears correct, but the variables are not substituted at check
- time and so the application can't be found, script won't compile and I'm
- sunk. Any ideas on how to make the machine and zone come in from a field.
- I assume the same problem would occur with FrontMost but I can't afford to
- change the entire stack over even if it didn't.
-
- Thanks in advance,
- Ken
-
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- Kenneth J. Fox
- Rockwell Automation - Allen Bradley Co.
- Milwaukee, WI (414)382-3287
- kjfox@mke.ab.com
- =========================================================================
- Date: Thu, 24 Mar 1994 13:05:35 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Scott Trotter <strotter@NETCOM.COM>
- Subject: Language Guide Errata Errata
-
- In the "Language Guide Errata" release note that comes with AS 1.1, there
- is a problem described on page 139 concerning the text of a range of words
- in a string. Specifically, the book's example:
-
- text of words 1 thru 4 of "We're all in this together"
- --result: We're all in this"
-
- produces a a different result, namely a list of words instead of a string:
-
- --result: {"We're", "all", "in", "this"}
-
- To get the correct result, you must use the following syntax:
-
- text from word 1 to word 4 of "We're all in this together"
- --result: We're all in this"
-
-
- I wanted to let everyone know that there is another example of this same
- problem on page 63 of the AS Language Guide, in the section describing
- String values. The "Notes" subsection reads as follows:
-
- To get a contiguous range of characters within a string, use the text
- element. For example, the value of the following statement is the
- string "y thi".
-
- get text of characters 3 thru 7 of "Try this at home"
- --result: "y thi"
-
- The result of the same statement without the text element is a list.
-
- get characters 3 thru 7 of "Try this at home"
- --result: {"y", " ", "t", "h", "i"}
-
- In fact, both statements product the same list as a result. To get the
- string instead of the list, you must use the statement:
-
- get text from character 3 to character 7 of "Try this at home"
- --result: "y thi"
-
- BTW, you can also coerce the list into a string, *provided* that you
- haven't changed Applescript's text item delimiters:
-
- get characters 3 thru 7 of "Try this at home" as string
- --result: "y thi"
-
-
- --
- ======================================================================
- Scott Trotter Desktop Strategies Beaverton, Oregon, USA
- email: strotter@netcom.com fax: 503.641.2983 voice: 503.641.3741
- =========================================================================
- Date: Thu, 24 Mar 1994 15:25:00 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: Authorware print docs scripts
- In-Reply-To: Your message of "Thu, 24 Mar 94 15:47:53 EST"
-
- Bill,
-
- >I am looking for _any_ Authorware scripts, but more specifically printing
- >scripts that will allow printing without actually ever leaving Authorware.
- >Needed for printing coupons, maps, for a 24-hour City Hall kiosk. Frontier,
- >QuicKeys, AppleScript, anything. Would there be anything on gaea? How do I
- >access gaea.
-
- I don't recall anything Authorware-specific on gaea. You reach gaea via FTP at
- gaea.kgs.ukans.edu. Check the frontier, applescript, and QuicKeys directories.
-
- Is Authorware scriptable (I'm not familiar with the program)? If so, are you
- planning on attaching a print script to a button? If it isn't, QuicKeys will
- give you a "reasonable" interface for your scripts. I can elaborate if that's
- the direction you are headed.
-
- Perhaps someone who knows the program can give a better suggestion.
-
- pf
-
-
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
-
- "Bad spellers of the world, untie!"
- --Graffito
- =========================================================================
- Date: Thu, 24 Mar 1994 14:07:47 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Frontier: Launching scripts into background threads
-
- >Is it possible to launch a Frontier script into a background thread? I
- >make heavy use of FinderMenus,
- >but one of the problems with this is that whenever a long, complex script
- >is launched by one of my
- >FinderMenus, all the FinderMenus become unavailable until the script
- >terminates. Is there anything
- >I can do to make the FinderMenu scripts run in a background thread, thereby
- >returning me to
- >FinderMenus immediately?
-
- Top of head answer (all the good stuff fell to the bottom 30 years ago,
- unfortunately--Army Basic Training did that):
-
- You could try sending a 'misc' 'dosc' event to Frontier (from the script in
- the FinderMenu item), using the finderEvent () verb. FinderEvent does not
- wait for a reply...the string sent as the '----' parameter would be trigger
- the script you actually want to execute.
-
- Please let us know whether that works for you <grin>.
-
- I may be missing something less obscure, too. --John
-
- --John W. Baxter Port Ludlow, WA USA jwbaxter@pt.olympus.net
- UserLand Software support
- =========================================================================
- Date: Thu, 24 Mar 1994 20:42:54 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: a request for contributions
-
- Everyone,
-
- I'm wrapping up a book on AppleScript in the next couple of months.
- Like most writers, I tend to live in a world of my own creation that
- may or may not be tapped into the "real" world. Because I want this book
- to reflect the real world, and I can tell that some of you are systems
- integrators like me, I thought I would try to get some examples from
- other scripters.
-
- The book is slanted towards systems integrators--people that take
- off-the-shelf applications and combine them with scripts to solve problems or
- add features that they could never get from a commercial application. What
- I'm looking for are scripts that wrap the functions of two or three
- applications (word processor, database, spreadsheet, page layout and
- graphics packages) together. M & T Books is publishing the book. If you
- have something you would like to contribute, drop me a note at
- pfterry@lks.csi.com. If your script is included in the book, you'll get
- your name (and your script) immortalized in print.
-
-
- pf
-
-
-
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- Fred Terry Cadence Design Systems pfterry@lks.csi.com +1 913 841 1283
- =========================================================================
- Date: Thu, 24 Mar 1994 23:44:50 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: INRA000 <INRA@MUSICB.MCGILL.CA>
- Subject: Re: a request for contributions
- In-Reply-To: In reply to your message of THU 24 MAR 1994 09:42:54 EST
-
- >I'm wrapping up a book on AppleScript in the next couple of months.
- [...]
- >If you
- >have something you would like to contribute, drop me a note
-
- Well, I don't have a script to offer but...
-
- I've been working for the past year on what would now be called an
- improved version of FolderWatcher (Although FW didn't exist when I
- started coding). It will be a shareware app (faceless) that, like FW,
- will keep an eye on folders. However, *un*like FW, it uses an internal
- index to determine exactly how the folder changed, so that a more
- specific action can be taken than just running a generic script. Thus,
- you can have specific scripts handle newly arrived files, files not
- modified for a certain amount of time, files moving around, etc, etc.
- This is of course much more difficult to implement than simply watching
- the folder's modification date.
-
- The package will contain an internal library of pre-defined actions,
- such as copy file, move file, rename, make alias, print, etc. for
- folks that don't have AS. However, there are numerous ways to tie
- in AS, including attaching a script to a folder so that the script gets
- a shot at all detected events, making it a very useful scripting tool.
-
- I'm projecting a stable beta within a few (maybe several) weeks,
- and a release shortly after that. All told, maybe another 2/3 months
- until release. (Definately first half, and I would be disappointed
- if it were any later than, say, late April.)
-
- I'll be sending my end product to the Tao people and Danny
- Goodman's crew, but those books don't seem to be headed in the direction
- of an updated release (although you never know -- they still don't
- cover AS1.1).
-
- Anyway, if you'll be including s/w with your book, I thought this
- might interest you. I'm rather excited about this product's
- flexibility -- I'm already using it on my system. Please let me know
- if you're interested or not in including the end product -- I feel it
- might prove useful to your target group of people, and I would be more
- than happy to give you distribution rights. Of course, I'd also be
- happy to send you a beta as soon as a decent one is achieved, so you
- can check it out.
-
- Sincerely,
-
- Mark Aiken
- inra@musicb.mcgill.ca
- =========================================================================
- Date: Thu, 24 Mar 1994 20:48:30 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Frontier: Launching scripts into background threads
-
- I said...
- >Top of head answer (all the good stuff fell to the bottom 30 years ago,
- >unfortunately--Army Basic Training did that):
-
- [Details omitted, because...]
-
- Sad to say, it doesn't work (the script goes off executing independently,
- but the menus stay dimmed until it's done).
-
- Something that SHOULD work would be to have the menu script set a handy
- flag in the Frontier database. A Frontier agent would watch that flag, and
- run the desired script when it is found to be true (setting the flag false
- would be a good idea, too).
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Fri, 25 Mar 1994 09:16:40 CST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Taylor Leaming H3-283 <leamingt@TOBOR.SPS.MOT.COM>
- Subject: pfterry@lks.csi.com
-
- > I'm wrapping up a book on AppleScript in the next couple of months.
- > Like most writers, I tend to live in a world of my own creation that
- > may or may not be tapped into the "real" world. Because I want this book
- > to reflect the real world, and I can tell that some of you are systems
- > integrators like me, I thought I would try to get some examples from
- > other scripters.
- >
- > The book is slanted towards systems integrators--people that take
- > off-the-shelf applications and combine them with scripts to solve problems or
- > add features that they could never get from a commercial application. What
- > I'm looking for are scripts that wrap the functions of two or three
- > applications (word processor, database, spreadsheet, page layout and
- > graphics packages) together. M & T Books is publishing the book. If you
- > have something you would like to contribute, drop me a note at
- > pfterry@lks.csi.com. If your script is included in the book, you'll get
- > your name (and your script) immortalized in print.
-
- All I have are some scripts I wrote to automate SITcomm for logging into my
- Sparc at work, through the company firewall, and also for connecting to a
- number of FTP sites (log in, move to appropriate areas...with messaging).
- If these would be of interest, I can send them to you.
-
- If you would like someone to proof-read/review your draft for your book, I
- would be happy to help you out. :)
-
- Taylor
- =========================================================================
- Date: Fri, 25 Mar 1994 14:54:07 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Stephen Jonke <jonke@GSFC.NASA.GOV>
- Subject: ScriptEditor not scriptable!
-
- I just tried to drop a copy of ScriptEditor onto ScriptEditor and was
- suprised to find that it isn't scriptable! This seems really dumb to me.
- If it was, I could add some of the things that I want it to do, like
- find/replace, comment selected lines, etc. Any word on whether the
- ScriptEditor itself will support AppleScript in the future? Are there any
- 3rd party script editing programs that support AppleEvents?
-
- Steve
-
- ---------------------
- jonke@gsfc.nasa.gov
- ---------------------
- =========================================================================
- Date: Fri, 25 Mar 1994 15:48:54 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Myers <myers@ACEC.COM>
- Subject: Looking for a scriptable, file-based grep
-
- Is anybody aware of a scriptable grep that works on files, rather
- than strings? I have checked out "greplet" on gaea and the grep
- osax, but these two have the same problem: you have to pass the
- source string along with the pattern via an appleEvent. If your
- intention is to grep a whole file, you end up chopping up the file
- yourself and passing it line by line over the very low-bandwidth
- appleEvent interface. What I'm looking for is a grepper that
- you can simply point at a file and set it going, like this: (pardon
- the UserTalk bias, you AppleScripters...)
-
- grep.launch()
- resultingRec = grep.doAGrep(filespec, pattern)
-
- (err, to maintain UNIXness, I suppose those args
- should be (pattern, filespec). UNIX grep always seems backward
- to me...) I would really like the resulting record to be the text
- of each line that matched, just like UNIX grep.
-
- This *can't* be a difficult thing to do, and I would do it myself
- (really I would) if I had a C compiler anymore...Anyway, I'd
- appreciate it if somebody could steer me in the right direction.
-
- -David
- =========================================================================
- Date: Fri, 25 Mar 1994 14:59:30 CST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Kenneth J. Fox" <kjfox@MKE.AB.COM>
- Subject: Re: ScriptEditor not scriptable!
-
- >I just tried to drop a copy of ScriptEditor onto ScriptEditor and was
- >suprised to find that it isn't scriptable! This seems really dumb to me.
- >If it was, I could add some of the things that I want it to do, like
- >find/replace, comment selected lines, etc. Any word on whether the
- >ScriptEditor itself will support AppleScript in the future? Are there any
- >3rd party script editing programs that support AppleEvents?
- >
- >Steve
- >
- >---------------------
- > jonke@gsfc.nasa.gov
- >---------------------
-
- I'm not sure if this is what you want, but the thought occurred to me that
- HyperCard 2.2 is scriptable and you can essentially create your own script
- editor by creating a card field for the script text. If the card field is
- named "myText" then the following line of code executes the field as
- AppleScript.
-
- do card field "myText" as AppleScript
-
- You are then free to create any handlers you want on the card to do things
- such as block comment, etc. Lot of coding, but very adaptable.
-
- Just a thought!
- Ken
-
- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
- Kenneth J. Fox
- Rockwell Automation - Allen Bradley Co.
- Milwaukee, WI (414)382-3287
- kjfox@mke.ab.com
- =========================================================================
- Date: Fri, 25 Mar 1994 15:00:12 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: Looking for a scriptable, file-based grep
- In-Reply-To: Your message of "Fri, 25 Mar 94 15:48:54 EST"
-
- David,
-
- >Is anybody aware of a scriptable grep that works on files, rather
- >than strings? I have checked out "greplet" on gaea and the grep
- >osax, but these two have the same problem: you have to pass the
- >source string along with the pattern via an appleEvent. If your
- >intention is to grep a whole file, you end up chopping up the file
- >yourself and passing it line by line over the very low-bandwidth
- >appleEvent interface. What I'm looking for is a grepper that
- >you can simply point at a file and set it going, like this: (pardon
- >the UserTalk bias, you AppleScripters...)
- >
- >grep.launch()
- >resultingRec = grep.doAGrep(filespec, pattern)
- >
- >(err, to maintain UNIXness, I suppose those args
- >should be (pattern, filespec). UNIX grep always seems backward
- >to me...) I would really like the resulting record to be the text
- >of each line that matched, just like UNIX grep.
- >
- >This *can't* be a difficult thing to do, and I would do it myself
- >(really I would) if I had a C compiler anymore...Anyway, I'd
- >appreciate it if somebody could steer me in the right direction.
-
-
- I won't pretend to know everything that's out there, but I've also looked for
- this and haven't been able to find out. You can use the Regular Expressions
- and the File IO osaxen in Mark Alldritt's Script Tools to compare each line of
- a file against an expression (which I started working on last night), but it
- sounds like you've already thought of this.
-
- I looked at the source code included in the grepup.sit.hqx file, but I'm a C
- newbie and just don't have the time to do it right now no matter how badly I
- want it.
-
- Does anyone else know of a scriptable grep? (Please say yes.)
-
- pf
-
-
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
- =========================================================================
- Date: Fri, 25 Mar 1994 16:24:45 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: King Rhoton <king@ACPUB.DUKE.EDU>
- Subject: Re: Looking for a scriptable, file-based grep
-
- MacPerl has grep built-in, and can be called from applescript (and, it's free!).
-
- King Rhoton king@acpub.duke.edu
- =========================================================================
- Date: Fri, 25 Mar 1994 13:26:45 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: ScriptEditor not scriptable!
-
- >I just tried to drop a copy of ScriptEditor onto ScriptEditor and was
- >suprised to find that it isn't scriptable! This seems really dumb to me.
- >If it was, I could add some of the things that I want it to do, like
- >find/replace, comment selected lines, etc. Any word on whether the
- >ScriptEditor itself will support AppleScript in the future? Are there any
- >3rd party script editing programs that support AppleEvents?
- >
-
- Strange, isn't it, that the AppleScript Script Editor is not scriptable.
- Surely there will be a third party editor sometime, unless Apple beats the
- parties to it.
-
- Meanwhile, Frontier is a highly scriptable (but not "Scriptable" in the
- Apple PR sense of being scriptable using object model terminology) venue in
- which to edit AppleScript scripts (use version 3.0.1 or higher). The
- Frontier editor also does not have a 32K limit on the size of a script (and
- Frontier has a Search/Replace, too).
-
- And you might even find yourself writing some of your scripts in UserTalk
- now and then.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Fri, 25 Mar 1994 15:28:49 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: Looking for a scriptable, file-based grep
- In-Reply-To: Your message of "Fri, 25 Mar 94 16:24:45 EST"
-
- King,
-
- >MacPerl has grep built-in, and can be called from applescript (and, it's free!
- >).
-
- Whoa! Great suggestion.
-
- pf
- =========================================================================
- Date: Fri, 25 Mar 1994 17:21:07 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: More AnArchie questions...
-
- I have found a very strange behaviour in Anarchie, or at least it
- seems strange to me. It won't correctly upload or download a text file
- from my Unix account. It seems to have a problem with the carridge
- return to line feed conversion between the MacOS and Unix. Fetch handles
- this quite nicely, but I can't script Fetch like I can AnArchie. Anyone
- know of a way to handle this?
-
- -Hades
- =========================================================================
- Date: Fri, 25 Mar 1994 17:23:57 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Stephen Jonke <jonke@GSFC.NASA.GOV>
- Subject: Scripting ObjectMaster
-
- Has anyone experience with scripting ObjectMaster? I'm just trying to get
- either the contents of the top most window, or the current selection.
- However, if I say:
-
- set x to count characters of window 1
-
- it returns zero, regardless of how much text is in the window, implying
- that windows don't have text in them. What object does and how do I get
- the text in it?
-
- The manual talks about AppleEvents, but only in low level terms. I can't
- make heads or tails out of it (note that I'm currently using OM to develop
- for Unix, not Mac, unfortunately.)
-
- Steve
-
- ---------------------
- jonke@gsfc.nasa.gov
- ---------------------
- =========================================================================
- Date: Fri, 25 Mar 1994 18:58:12 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Brian Hall <mspace@NETCOM.COM>
- Subject: Re: Syntax checking on dynamic references
-
- >From: "Kenneth J. Fox" <kjfox@MKE.AB.COM>
- >
- >Looking ahead to the day when
- >either the name of the target machine or zone changes, I'd
- >like to read the names of these out of fields and then use these
- >variables in the tell such as:
- >
- > set theMachine to card field "machine"
- > set theZone to card field "zone"
- >
- > tell application "Notify Server" of machine theMachine of zone theZone
- > Page me Message "help"
- > end tell
- >
- >The syntax appears correct, but the variables are not substituted at check
- >time and so the application can't be found, script won't compile and I'm
- >sunk. Any ideas on how to make the machine and zone come in from a field.
- >I assume the same problem would occur with FrontMost but I can't afford to
- >change the entire stack over even if it didn't.
-
- I remember having this problem at a MacWorld show. It turns out that
- AppleScript needs to either be able to send a "Get Info" type event to the
- remote app (and ask for the needed scripting info) *or* you need a copy on
- the local machine (even though you will send the event to the remote one.
-
- Give that a try.
-
- ps- You might want to send a link to EX.MACHINA (AppleLink) and suggest
- they implement the needed events.
-
-
- __________________________________________________________________________
- Brian Hall Internet: mspace@netcom.com
- Mark/Space Softworks AppleLink, AOL: MARKSPACE
- Macintosh connectivity software. Goodies at ftp.netcom.com in pub/mspace
- =========================================================================
- Date: Sat, 26 Mar 1994 13:31:47 +0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Craig Richmond <craig@ECEL.UWA.EDU.AU>
- Subject: Re: More AnArchie questions...
-
- At 5:21 PM 3/25/94 -0500, Brian V. Hughes wrote:
- > I have found a very strange behaviour in Anarchie, or at least it
- >seems strange to me. It won't correctly upload or download a text file
- >from my Unix account. It seems to have a problem with the carridge
- >return to line feed conversion between the MacOS and Unix. Fetch handles
- >this quite nicely, but I can't script Fetch like I can AnArchie. Anyone
- >know of a way to handle this?
-
- Sorry guys, I know this isn't Applescript, but Anarchie is such a great
- program, I thought I better sort it out.
-
- Anarchie cannot tell from the remote site whether a file is text or binary.
- The default therefore is to download files as binary because applications
- can convert the carriage returns themselves if they happen to be text
- files. Whereas an application cannot turn a text transfered back into a
- binary file reliably.
-
- Anarchie also supports Fetch's suffix mappings data, so if you configure
- your Fetch suffix mappings to treat all files ending in .txt as text files,
- then Anarchie will download them using ASCII mode rather than binary.
-
- If you have Anarchie questions that do not relate to Applescript, (or even
- ones that do) read the documentation, and then just mail Peter. He gets
- depressed when I send him things from obscure places where people are
- complaining about bugs in his software.
-
- Cheers,
- Craig
-
- --
- Craig Richmond, Computer Officer, ECEL Computing Services +61 9 380 1405
- The University of Western Australia or 380 3860 Email for FAX Number
- craig@ecel.uwa.edu.au Dvorak Keyboards RULE! "Messes are only acceptable
- if users make them. Applications aren't allowed this freedom" I.M.VI 2-4
- =========================================================================
- Date: Fri, 25 Mar 1994 21:57:39 PST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: SteakFace <asmith@PRODIGY.BC.CA>
- Subject: Re: Two questions in an attempt to script Eudora/MacPPP
-
- >What follows is a sample script for a "Notify" applet that came from the
- >list a while ago. I'm afraid I don't know who originally sent it, so I
- >can't give credit where it is due.
-
- Thanks for the stuff. I have some questions if you have a moment. If you're
- busy and can't answer don't sweat it. I'm sure I can find someone else to
- help.
-
-
- The quoted bits that follow are the code you sent.
-
- >on =ABevent CSOmeNot=BB msgList
- >
- >--Respond to notification event here
- >
- >end =ABevent CSOmeNot=BB
-
- I'm sorry, I don't understand what this bit is. Can you easily explain to
- me what it's for and where it came from?
-
- And pardon my complete cluelessness, but what exactly should the
- "notification event" consist of?
-
- >-- Below requires the location of the Notify applet, assumed "Hard Disk:Noti=
- >fy"
-
- What is the "Notify" applet. I was expecting to be able to put the whole
- thing into a single script -- am I to assume that this will require to
- scripts. One that receives messages from Eudora and the passes the message
- on to a second script?
-
- >on run
- > tell application "Eudora"
- > Please Notify alias "Hard Disk:Notify" with Notify
- > end tell
- >end run
- >
- >
- >on quit
- > tell application "Eudora"
- > Please Notify alias "Hard Disk:Notify" without Notify
- > end tell
- > continue quit
- >end quit
-
- I assume that these parts tell Eudora first to send a message upon
- completion of the mail run, and then not to do it anymore once the script
- is finished.
-
- If these questions will require a massive amount of explaining just tell me
- and I'll dive back into the books and try to work it out myself. If you
- have the time to help I'd be most appreciative.
-
- And one last question -- do you use a third party script editor, or the one
- that comes with AS from Apple? If so, is it any good?
-
- Cheers
- SteakFace
-
-
-
- =================================================================
- SteakFace graphic designer - media manipulator - bad mood guy
- datapanik asmith@prodigy.bc.ca
- Vancouver, Canada
- =================================================================
- My cat would like to know why it is that we humans are so willing
- to lick each other's genitals, but we won't lick our own.
- =========================================================================
- Date: Sat, 26 Mar 1994 02:10:09 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "William J. Jamison" <jami1@AOL.COM>
- Subject: Re: Authorware print docs scripts
-
- Thanks Fred Terry.
-
- The QK2 solution is a _reasonable_ one indeed. One that's a little better is
- the PrintDocs XCMD. Yes, _A_ware is scriptable in a limited sense, not even
- close to Lingo, but it's what I have to work with. I'm sure a
- seamless/background solution is just around the corner.
-
- OK, so I guess the gaea Internet address: gaea.kgs.ukans.edu is how I reach
- it, how do I "browse" the frontier, applescript, and QuicKeys directories?
- What is FTP? Somebody please pass the towel so I can dry behind my ears?
-
- Totally unrelated, but - how do I reset the printer port with a Stylewriter
- and X-10 home controller hanging off an A/B switch on a 660AV after sending
- _weird_ <---(I b4 e except after c and sometimes w) events (XCMD's, UCMD's
- and Easy Alarms events) to it in the process of programming all the stuff in
- my house to scare the crap out of burglars when we're all out and wake us up
- in the morning and turn on the coffee 5 minutes b4 we get out of bed and turn
- my son's Sega off so he'll get to bed and not pester his sisters the next
- day, without having to restart the AV? I get a msg saying that the serial
- port is in use by another application and would I please quit that
- application and then I can have my printer back, and yes I switched the A/B
- switch back and I did the Chooser/Page Setup thing. GeoPorts can be a real
- pain ;-^) I don't think all that stuff likes being ran off the printer port.
- Anybody know of a software controllable multi-bus that can be hung off of the
- GeoPort or even an A/B switch? I found an XOBJect that flushes the serial
- port but I haven't quite figured out how to make it work.
-
- One more thing on my list: Apple File Exchange doesn't know AE's worth beans
- and it's an Apple product. I can barely get it automated with T2+ and QK2 (we
- don't do bit matches) fails miserably. Maybe Frontier (wrote a neat little
- text file merger today in less than 1/2 an hour that gloms/gathers all the
- files in one folder into one big file in another folder) can do DOS/Mac
- conversions straight off a DOS formatted disk and onto a Mac? How about it
- JB? Apple says try PC Exchange and I think that's rich but I'll try it
- anyway, especially if it works. New meter reader contract for the city. I
- told them to get a Mac based system, but NOOO. Programmer serfs don't have
- enough clout.
-
- John, does Userland have a better scheduling system than the agents approach
- yet or are they working on it? Easy Alarms has been doing a great job of
- handling this for me - [type "W", "Control"] - by triggering QK2 shortcuts
- that open Frontier desktop scripts that call more QuicKeys and T2+ macros. I
- gave up on Control Tower a long time ago.
- =========================================================================
- Date: Fri, 25 Mar 1994 23:48:45 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Authorware print docs scripts
-
- At 02:10 3/26/94 -0500, William J. Jamison wrote:
-
- >John, does Userland have a better scheduling system than the agents approach
- >yet or are they working on it? Easy Alarms has been doing a great job of
- >handling this for me - [type "W", "Control"] - by triggering QK2 shortcuts
- >that open Frontier desktop scripts that call more QuicKeys and T2+ macros. I
- >gave up on Control Tower a long time ago.
-
- Some time ago, UserLand uploaded the Scheduler Suite. As of Frontier 3.0,
- this suite was incorporated into the Frontier product in slightly fixed
- form, so if you have Frontier 3.0 or later you have the suite.
-
- The suite is based on one agent, whose job, once per minute, is to look
- through a table of "tasks" for a task whose scheduled time has arrived.
- The task is (usually) periodic, and after it runs the scheduler sets it up
- to run the next time it is due. That process takes into account any delays
- in running the task (such as Frontier not being running), so the process is
- drift-free: if you say 8AM every 24 hours, and there was a delay until
- noon in running it today because Frontier wasn't running (or some other
- reason), it will still run at 8AM tomorrow.
-
- If you are still on Frontier 2.x, you can find the suite on the FTP server
- at gaea...someone else will help you use that, I'm sure.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Sat, 26 Mar 1994 15:01:28 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Raoul Schaffner <raoul@EAWAG.CH>
- Subject: Seeking Password-entry osax (w/ blind writing)
-
- Hi y'all!
-
- I'm looking for a Scripting Addition that allows me to bring up dialog
- boxes similar to the ones coming from the "Display Dialog" osax shipped
- with AppleScript 1.0.
-
- The feature I'm missing is "blind typing" by displaying a bullet for
- each typed char. This allows the Scripter to handle passwords in a
- more secure way than without "bullets". (I know that this isn't secure
- at all since the passwd is always available as simple text)
-
- Any hints, pointers, handles? :-)
-
-
- Thanks,
- Raoul
-
-
- ________________________________________________________________________
- |||||||||
- ||||||| Raoul Schaffner E-Mail: raoul@eawag.ch
- ||||| Swiss Federal Institute for Water
- ||| Resources And Water Pollution Control Phone: +41-1-823-5511
- | Computer Science Dept. Fax: +41-1-823-5028
- =========================================================================
- Date: Sat, 26 Mar 1994 08:12:43 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: Authorware print docs scripts
- In-Reply-To: Your message of "Sat, 26 Mar 94 02:10:09 EST"
-
- >The QK2 solution is a _reasonable_ one indeed. One that's a little better is
- >the PrintDocs XCMD. Yes, _A_ware is scriptable in a limited sense, not even
- >close to Lingo, but it's what I have to work with. I'm sure a
- >seamless/background solution is just around the corner.
- >
- >OK, so I guess the gaea Internet address: gaea.kgs.ukans.edu is how I reach
- >it, how do I "browse" the frontier, applescript, and QuicKeys directories?
- >What is FTP? Somebody please pass the towel so I can dry behind my ears?
-
- Well, I was about to tell you to ftp a copy of Anarchie and look at the
- AppleScript bookmark to browse gaea.....but I guess that won't work. FTP
- is file transfer protocol and is the way files are moved around the
- Internet--sorta like downloading from CompuServe and BBSs but cooler. You
- might want to grab a copy of Adam Engst's Mac Internet Starter Kit book.
- It'll hold your hand through most of this stuff.
-
- >
- [some stuff deleted for brevity]
- >Anybody know of a software controllable multi-bus that can be hung off of the
- >GeoPort or even an A/B switch? I found an XOBJect that flushes the serial
- >port but I haven't quite figured out how to make it work.
-
- A company called Silicon Valley Bus (honest) has a multi-serial port product
- that is software controlable. Expensive, but it might work better than the
- earlier version of the Axion switch that I have.
- >
- >One more thing on my list: Apple File Exchange doesn't know AE's worth beans
- >and it's an Apple product. I can barely get it automated with T2+ and QK2 (we
- >don't do bit matches) fails miserably. Maybe Frontier (wrote a neat little
- >text file merger today in less than 1/2 an hour that gloms/gathers all the
- >files in one folder into one big file in another folder) can do DOS/Mac
- >conversions straight off a DOS formatted disk and onto a Mac? How about it
- >JB? Apple says try PC Exchange and I think that's rich but I'll try it
- >anyway, especially if it works. New meter reader contract for the city. I
- >told them to get a Mac based system, but NOOO. Programmer serfs don't have
- >enough clout.
- >
- >John, does Userland have a better scheduling system than the agents approach
- >yet or are they working on it? Easy Alarms has been doing a great job of
- >handling this for me - [type "W", "Control"] - by triggering QK2 shortcuts
- >that open Frontier desktop scripts that call more QuicKeys and T2+ macros. I
- >gave up on Control Tower a long time ago.
-
- Mark Alldritt has a schedular cdev that's ideal for this stuff. It's in
- late beta, but you might want to give him a holler [alldritt@wimsey.com].
-
- Good luck.
-
- pf
-
-
-
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
-
- "Bad spellers of the world, untie!"
- --Graffito
- =========================================================================
- Date: Sat, 26 Mar 1994 10:51:50 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: John Schettino <js12@GTE.COM>
- Subject: Re: Modeless Dialog Applescript
-
- >Has anyone out there created an applet or script which can display a
- >modeless dialog window ? I need to finish up a current project which
- >will allow the user to either ignore a posted message and click back to
- >the desktop or other application, leaving the dialog box showing. I
- >cannot do this with a modal dialog box because it expects to be dismissed
- >after displaying itself.
- >
- >I would appreciate any suggestions.
- >Allan
-
- If you got the AppleScript 1.1 package, it includes FrontMost, which does
- this quite well. Falling that, I think there is a way to call HyperCard
- Xcmds from AS, and I know the Renaldi Xcmds contain floating windows as
- well as non-modal dialogs. Good Luck!
-
- - john
-
- -----------------------------------------
- js12@gte.com GTE Laboratories
- John Schettino Waltham, MA
- =========================================================================
- Date: Sat, 26 Mar 1994 08:04:00 PST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mark Alldritt <alldritt@WIMSEY.COM>
- Subject: Re: ScriptEditor not scriptable
-
- >Date: Fri, 25 Mar 1994 14:54:07 -0500
- >From: Stephen Jonke <jonke@GSFC.NASA.GOV>
- >Subject: ScriptEditor not scriptable!
- >
- >I just tried to drop a copy of ScriptEditor onto ScriptEditor and was
- >suprised to find that it isn't scriptable! This seems really dumb to me.
- >If it was, I could add some of the things that I want it to do, like
- >find/replace, comment selected lines, etc. Any word on whether the
- >ScriptEditor itself will support AppleScript in the future? Are there any
- >3rd party script editing programs that support AppleEvents?
-
- The Apple Script Editor is indeed not scriptable. The C-language API
- provided by AppleScript makes it very difficult to make a general purpose
- scriptable script editor. This is because scripts are compiled in the
- context of the dictionary of the application compiling them. I've not been
- able to find a way to tell AppleScript to use its own doictionary or no
- dictionary at all.
-
- Once solution is to use a more powerfull editor like BBEdit, and Jon Pogh's
- MPW command (through ToolServer) to build your scripts. Not quite
- scriptable, but better than Script Editor.
-
- -Mark
- =========================================================================
- Date: Sat, 26 Mar 1994 13:17:25 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "William J. Jamison" <jami1@AOL.COM>
- Subject: Frontier's Scheduler Suite
-
- On 26 Mar 1994 at 02:50:49 -0500 John W. Baxter wrote:
-
- xThe suite is based on one agent, whose job, once per minute, is to look
- xthrough a table of "tasks" for a task whose scheduled time has arrived.
- xThe task is (usually) periodic, and after it runs the scheduler sets it up
- xto run the next time it is due. That process takes into account any delays
- xin running the task (such as Frontier not being running), so the process is
- xdrift-free: if you say 8AM every 24 hours, and there was a delay until
- xnoon in running it today because Frontier wasn't running (or some other
- xreason), it will still run at 8AM tomorrow.
-
-
- Yes, I was aware of the Scheduler Suite, it's right ther hanging at the
- bottom of my suites menu, but having Frontier running all the time isn't
- neccesary when Easy Alarms is already running in the background and handles
- the scheduling better. I could even do it with Smart Alarms (which I abhor).
- I guess it's kind of silly and I don't expect much to come of it and I don't
- want to make an issue of it or even complain however capricious that may
- seem. It would just be nice, (((((Frontier))))). If Userland were to take on
- this aspect of software development, it would put them into competition with
- NUD (I don't have it. I have lots of other cool Now stuff. Does it send Apple
- Events?) and that would probably be even sillier and more demeaning. If they
- get _bored_ though, it would be nice. Maybe the world could use a better job
- scheduler on the Mac? A _serious_ job scheduler, maybe by it's very tone and
- bearing, not meant to remind you to take out the garbage, mow the dog, water
- the cat, haul wood, chop water or wish that you actually had hair. John is
- not all wet. He is inside, answering his E-mail at 2AM while the rest of us
- are snuggled up asleep on the couch not expecting such immediate response.
-
- //Jami//
- (William J. Jamison) Kelso, WA
- Old hippies never die, you just wish they would take a bath sometimes.
- =========================================================================
- Date: Sat, 26 Mar 1994 13:17:39 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "William J. Jamison" <jami1@AOL.COM>
- Subject: FTP, buses and schedulers
-
- At 08:12:43 Sat, 26 Mar 1994 -0600 Fred Terry wrote:
-
- xWell, I was about to tell you to ftp a copy of Anarchie and look at the
- xAppleScript bookmark to browse gaea.....but I guess that won't work. FTP
- xis file transfer protocol and is the way files are moved around the
- xInternet--sorta like downloading from CompuServe and BBSs but cooler. You
- xmight want to grab a copy of Adam Engst's Mac Internet Starter Kit book.
- xIt'll hold your hand through most of this stuff.
-
- Still wet, but getting drier, need another towel. OK I can do that, lots of
- local BBS's, even a Telefinder based one that promises to have FTP soon, tons
- of Internet docs right under my nose on my computer, enough to write my own
- book, looking forward to browsing the Internet and being a real pest ;-^)
- Thanks.
-
- xA company called Silicon Valley Bus (honest) has a multi-serial port product
- xthat is software controlable. Expensive, but it might work better than the
- xearlier version of the Axion switch that I have.
-
- We have one at work, 8-pin, won't work on the GeoPort (9 pin), otherwise a
- great product. Do they have a 9 pin version? Nevermind if you don't know,
- I'll call Monday.
-
- xMark Alldritt has a schedular cdev that's ideal for this stuff. It's in
- xlate beta, but you might want to give him a holler [alldritt@wimsey.com].
-
- Hmmm (drooling) OK, I'll byte. Thank you very much. Maybe Mark and Dave Winer
- should talk to each other.
-
- //Jami//
- (William J. Jamison) Kelso, WA
- Old hippies never die, just wish they'd take a bath sometimes.
- =========================================================================
- Date: Sat, 26 Mar 1994 15:56:38 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Atul Butte <ATUL@BROWNVM.BROWN.EDU>
- Subject: Re: Seeking Password-entry osax (w/ blind writing
-
- >From: Raoul Schaffner <raoul@EAWAG.CH>
- >
- >The feature I'm missing is "blind typing" by displaying a bullet for
- >each typed char. This allows the Scripter to handle passwords in a
- >more secure way than without "bullets". (I know that this isn't secure
- >at all since the passwd is always available as simple text)
- >
- >Any hints, pointers, handles? :-)
-
- Check out gaea.kgs.ukans.edu,
- in /applescript/osaxen/Password_OSAXen.sit.hqx
-
- -- Atul
-
- ---------------------------------------------------------------------
- Atul Butte
- Brown University School of Medicine
- currently in Howard Hughes Medical Institute / National Institutes of Health
- Research Scholars Program
- atul_butte@brown.edu
- atul_butte@nih.gov
- =========================================================================
- Date: Sat, 26 Mar 1994 23:35:26 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jay Martin <jay_martin@POSTOFFICE.AIDT.EDU>
- Subject: Re> Syntax checking on dynamic references
-
- >The syntax appears correct, but the variables are not substituted at check
- >time and so the application can't be found, script won't compile and I'm
- >sunk. Any ideas on how to make the machine and zone come in from a field.
- >I assume the same problem would occur with FrontMost but I can't afford to
- >change the entire stack over even if it didn't.
-
- When you compile an AS, the compiler needs to check with the application on
- the correct usage of terminology. If the application isn't around (or if the
- complete specification of the application can't be resolved at compile time -
- as in variables) the script won't compile. There is no real elegant way
- around this (no, it doesn't work in FrontMost either). About the best way to
- do this is to substitute the actual event (or class) names (which are of the
- general form <<event XXXXyyyy>>, <<class XXXX>>, etc.) and parameters for the
- AS terminology. This, of course, is not an easy task, but here's one way:
-
- 1) Compile your script in AS using a resolvable specification. You get
- something like:
-
- tell application "Anarchie"
- list alias "HD1:thelist" host "host" path "path"
- end tell
-
- 2) Save the compiled AS and close it.
-
- 3) Get rid of the target application; for instance, stuff it and throw away
- the uncompressed version.
-
- 4) Open up the script. It will ask you to locate the target application. Just
- pick some application. What you will get is:
-
- tell application "some application"
- <<event ArchList>> alias "HD1:thelist" given <<class FTPh>>:"host", <<cl
- ass
- FTPc>>:"path"
- end tell
-
- 5) Now, you can copy this script and paste it into HyperCard, with the
- following changes:
-
- tell application "Anarchie" of machine x of zone y
- <<event ArchList>> alias "HD1:thelist" given <<class FTPh>>:"host", <<cl
- ass
- FTPc>>:"path"
- end tell
-
- and it will compile. This _SHOULD_ work, but I can't test it right now, since
- I'm at home with no network. Anyway, I don't deserve the credit if it does, I
- got this tip from someone else (but haven't gotten around to trying it) but I
- can't remember who. Of course, the easiest way to do this is just to figure
- out what the event name and associated parameters are and write it yourself.
- (The << and >> are actually the option-\ and option-shift-\ characters
- respectively).
-
- If you try it, let us all know if it works. If anyone else has a better idea,
- I'd really like to hear it, as I will need to deal with this particular
- situation myself someday!
-
- Jay Martin
- Alabama Industrial Development Training
- =========================================================================
- Date: Sat, 26 Mar 1994 19:02:46 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jay Hebert <jayh@LAISON.W8HD.ORG>
- Organization: L'AISON - Beverly Hills, Michigan
- Subject: MacPPP Control 1.1
-
- I've really enjoyed using MacPPP Control osax in recent weeks, and kudos to
- its author.
-
- Situation: I have several PPP hosts that I have scripts for. When I invoke
- PPP through applescript, I don't seem to have any way to find out which one
- I'm calling, or to demand which one I call at launch.
-
- I opened the osax in the script editor, and It wouldn't appear that there is
- support for returning the current script, or changing it. (Although, I'd be
- happy to be wrong!) Is there any way, short of a QuickKey hack that opens
- the ConfigPPP control panel, to do this?
-
- I think adding such a thing would increase the usefulness of this osax many
- times over.
-
- Thanks for listening (reading?),
- Jay
-
- --==========================jayh@laison.w8hd.org=========================
- Metallica,|| When a man lies he murders / Some part of the world
- To Live ||These are the pale deaths which / Men miscall their lives
- is || All this I cannot bear / To witness any longer
- To Die || Cannot the kingdom of salvation / Take me home
- =======================================================================
- 1) These opinions are mine.-==- 2) Sending me mail gives me
- I'm too self-interested to -==- permission to reproduce it in any form
- speak for anyone else. -==- unless otherwise explicitly stated.
- =========================================================================
- Date: Mon, 28 Mar 1994 01:27:24 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Paki Papaioanu <ppapaioa@BUSMGA.BU.EDU>
- Subject: Re: Anarchie question....
-
- >The above script still fails here. But, as expected, this one works:
- >
- >activate application "Anarchie"
- >quit application "Anarchie"
- >
- >That's because AppleScript uses its own knowledge of the quit command to
- >create the event in the latter case (we're outside any "tell" here). I
- >think.
- >
- >Anyhow, the above seems to point to the workaround. Others???
- >
- > --John
-
- OK here it goes. The simple line:
-
- quit application "Anarchie"
-
- always works. (with AS 1.1 and Anarchie 1.1.3). Always.
- Why? Because the Sript Editor sends a required core AE to the application.
- In order for any application to be System 7 savvy, it needs to accept
- 'oapp' from 'kAEOpenApplication', 'odoc' from 'kAEOpenDocuments', 'pdoc'
- from 'kAEPrintDocuments' and finally 'quit' from 'kAEQuitApplication'.
- It leaves it up to the application implementation to take any safety
- measures before it quits (ie save file contents, preferences, settings,
- etc.)
- Now applications can implement "quit" as a verb and have it affect more
- distinctive objects than an application. I do not know if that is what
- Peter Lewis was talking about.
-
- Hope it helps
-
- ---
- Paki Papaioanu
- 3-5161
- =========================================================================
- Date: Mon, 28 Mar 1994 06:29:00 PST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mark Alldritt <alldritt@WIMSEY.COM>
- Subject: Re: MacPPP Control 1.1
-
- >Date: Sat, 26 Mar 1994 19:02:46 -0500
- >From: Jay Hebert <jayh@LAISON.W8HD.ORG>
- >Subject: MacPPP Control 1.1
- >
- >I've really enjoyed using MacPPP Control osax in recent weeks, and kudos to
- >its author.
- >
- >Situation: I have several PPP hosts that I have scripts for. When I invoke
- >PPP through applescript, I don't seem to have any way to find out which one
- >I'm calling, or to demand which one I call at launch.
- >
- >I opened the osax in the script editor, and It wouldn't appear that there is
- >support for returning the current script, or changing it. (Although, I'd be
- >happy to be wrong!) Is there any way, short of a QuickKey hack that opens
- >the ConfigPPP control panel, to do this?
- >
- >I think adding such a thing would increase the usefulness of this osax many
- >times over.
-
- Your right. MacPPP Control only allows you to open and close PPP
- connections. When I released the MacPPP Control addition, I wondered how
- long it would take for this type of request to appear.
-
- I am planning a new release of MacPPP Control which allows you to choose a
- PPP configuration when opening a connection. However, like everyone I've
- got other deadlines to meet so I can't provide a date when the software
- will be available.
-
- -Mark
- =========================================================================
- Date: Mon, 28 Mar 1994 10:54:22 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Bill Seitz <Bill_Seitz@SCP.COM>
- Subject: Scripted Ping?
-
- Is MacTCP Ping scriptable? Is there any other scriptable app that can
- generate a "ping"? We have dial-up service for the Internet, so I'd like to
- be able to set up a script scheduled to run once a day to generate a ping so
- our router would dial-up (thus downloading our mail).
- =========================================================================
- Date: Mon, 28 Mar 1994 14:39:13 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: William Murphy <wmurphy@CBRC-A12.MGH.HARVARD.EDU>
- Subject: reading the contents of a text file
-
- hi,
-
- if this is a lame question i apologize in advance, but i'm new at this.
-
- is it possible to read the text of a file into a script? I want to be able
- to do something like:
-
- set foo to "the file reads: "
- set bar to get contents of file "here:this.file"
-
- return foo & bar & "thats all folks..."
- =========================================================================
- Date: Mon, 28 Mar 1994 15:30:01 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Stephen Jonke <jonke@GSFC.NASA.GOV>
- Subject: Re: reading the contents of a text file
-
- >is it possible to read the text of a file into a script? I want to be able
- >to do something like:
- >
- >set foo to "the file reads: "
- >set bar to get contents of file "here:this.file"
- >
- >return foo & bar & "thats all folks..."
-
- Take a look at the "File IO" scripting addition. It's in the Scripting
- Additions folder in your Extensions folder in the System Folder. Drag it
- onto the Script Editor to open it's dictionary.
-
- Steve
-
- ---------------------
- jonke@gsfc.nasa.gov
- ---------------------
- =========================================================================
- Date: Mon, 28 Mar 1994 16:24:38 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Coty Rosenblath <coty@NETCOM.COM>
- Subject: Example Eudora scripts
-
- I would dearly love to script my Eudora, but I haven't made much headway.
- Does anyone know of any example scripts that I could look at?
-
- Thanks in advance,
- Coty
-
- Coty Rosenblath
- Senior Consultant
- Andersen Consulting
- 100 N. Tryon, Suite 3900
- Charlotte, NC 28202-4000
-
- e-mail: coty@netcom.com or crosenblath@mcimail.com
- =========================================================================
- Date: Mon, 28 Mar 1994 17:02:34 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Allan Marcus <allan_marcus@LANL.GOV>
- Subject: Re: Example Eudora scripts
-
- >I would dearly love to script my Eudora, but I haven't made much headway.
- >Does anyone know of any example scripts that I could look at?
- >
- >Thanks in advance,
- >Coty
- >
- >Coty Rosenblath
- >Senior Consultant
- >Andersen Consulting
- >100 N. Tryon, Suite 3900
- >Charlotte, NC 28202-4000
- >
- >e-mail: coty@netcom.com or crosenblath@mcimail.com
-
-
- I just went through this too. Here's a script that should get you going.
- Refer to the on line dictionary (via the script editor) for more commands.
-
- -- drops a message in Eudor's out box
- --Make sure you have Eudore 1.42 or greater
- tell application "Eudora"
- activate
- set x to make message InsertHere (end of mailbox "Out" of mail
- folder "")
- set field "To" of x to "allan_marcus@lanl.gov"
- set field "Subject" of x to "Subject"
- set field "" of x to "Body-of-message"
- queue x QueueType 1
- end tell
-
-
- ---------------------------------------
- Allan Marcus
- Los Alamos National Laboratory
- "My opinions are my own, I think..."
-
- Voice: 505-665-1828
- CIS: 76666,2113
- AppleLink: Allan.Marcus
- e-world/NewtonMail: Allan.M
- InterNet: allan_marcus@lanl.gov <- note new address (deja vu!)
- ---------------------------------------
- =========================================================================
- Date: Mon, 28 Mar 1994 17:01:44 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Steven L. Rohall" <slrohall@TASC.COM>
- Subject: Q on opening files...
-
- When I have the following script attached to a button in Frontmost:
-
- on hilited theObj
- tell application "Scriptable Text Editor"
- open {file "MacintoshHD:Test"}
- end tell
- end hilited
-
- things proceed as I would expect. When the button is pressed, the
- scriptable text editor is activated and the specified file is opened. The
- problem occurs when the file to be opened is being created or modified on
- the fly. In my case, I'm reading the file from a server someplace else in
- the network. Basically, the handler looks like:
-
- on hilited theObj
- getFile("/foo.c", {alias "MacintoshHD:"})
- tell application "Scriptable Text Editor"
- open {file "MacintoshHD:Test"}
- end tell
- end hilited
-
- In this case, getFile is a routine that grabs the file foo.c from the
- remote server and puts it into a file called "Test" in the specified
- folder. When this script is executed, I get the following error from the
- finder:
-
- An error occurred because the original item could not be found.
-
- even though the scriptable text editor has been able to successfully open
- the file. I have some theories on what the problem might be, but was
- hoping someone might be able to explain what was going on here. Thanks,
-
- -Steve.
-
-
- +--------------------------------------------------------------+
- | Steven L. Rohall |
- | ________ _ ______ ______ |
- | 55 Walkers Brook Drive / / \ / / / / |
- | Reading, MA 01867-3297 / /___\ /______ / |
- | Tel: (617)942-2000 / / \ // |
- | Fax: (617)942-7100 / / \/______//______/ |
- | slrohall@tasc.com |
- | (MIME-conformant mail welcome.) |
- +--------------------------------------------------------------+
- =========================================================================
- Date: Mon, 28 Mar 1994 14:34:37 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Ray <daver@NETCOM.COM>
- Subject: Re: reading the contents of a text file
-
- >>Is it possible to read the text of a file into a script? I want to be able
- >>to do something like:
- >>
- >>set foo to "the file reads: "
- >>set bar to get contents of file "here:this.file"
- >>
- >>return foo & bar & "thats all folks..."
- >
- >Take a look at the "File IO" scripting addition. It's in the Scripting
- >Additions folder in your Extensions folder in the System Folder. Drag it
- >onto the Script Editor to open it's dictionary.
-
- I've used this "File IO" scripting addition and it has some pros and cons.
- The disadvantage of it is that it reads one paragraph at a time. To get
- it to read a whole file (with an unknown length of paragraphs) you have
- to do something like:
-
- set refNum to open file alias "Disk:folder:file" for reading
- try -- an error will be generated when you get to the EOF
- repeat forever
- set newLine to read file refNum
- set theText to theText & return & newLine
- end repeat
- on error
- end try
- close file refNum
- set foo to "the file reads: "
- return foo & theText & "thats all folks..."
-
- The nice thing about File IO osax is that it can operate on files longer
- than 32k. However the text buffer that is storing the contents of theText
- can't go above 32k, possibly much less.
-
- Another way to do this is to open the file with Scriptable Text Editor,
- copy the contents of the file to a string variable:
-
- Tell app "Scriptable Text Editor"
- open a reference to file "Disk:folder:file"
- set theText to text of window 1
- quit saving no
- end tell
- set foo to "the file reads: "
- return foo & theText & "thats all folks..."
-
- This would be A LOT faster than using the File IO osax. However it is limited
- to 32k, and is uglier -- you will see a window open and close on your
- desktop.
-
- -Dave
- daver@netcom.com
- =========================================================================
- Date: Mon, 28 Mar 1994 17:48:22 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Stephen Jonke <jonke@GSFC.NASA.GOV>
- Subject: Re: Example Eudora scripts
-
- >I would dearly love to script my Eudora, but I haven't made much headway.
- >Does anyone know of any example scripts that I could look at?
-
- First, make sure you have the latest version of Eudora, version 1.4.2,
- which has better AppleScript support.
-
- One of the key things you need to know is how to reference messages. The
- most important things to know is that the topmost mail folder is "". So,
- you'd reference a message in your In box in this fashion:
-
- message 1 of mailbox "In" of mail folder ""
-
- Also, if you have created your own mail folders (as opposed to mailboxes),
- then they are in the top most mail folder. For example, if you have a mail
- folder "Lists" and a mailbox in it called "AppleScript", you'd reference
- the 3rd message in it by saying:
-
- message 3 of mailbox "AppleScript" of mail folder "Lists" of mail folder ""
-
- I'm not sure why, but if you use the following by itself as a reference:
-
- message 1
-
- this will reference the topmost window (even if it ISN'T a message!) In
- fact, the number you use in this case is irrelavent, you could use: message
- 12343 and it would still be the top most window.
-
- You reference fields in a message by name, for instance:
-
- field "To" of message 1 of mailbox "Out" of mail folder ""
-
- The field called "" (null string) is the body of the message. You can only
- set and get the values of fields (including the body) -- you can't
- reference words in fields, so first copy the field to a variable, and then
- play with the words, characters, etc. The only catch I've run into is that
- if you get a field that has a null value, Eudora will return an error. You
- can use a "try" to catch the error, but I presume this is a bug?
-
- To make a new message use:
-
- make ObjectClass message InsertHere end of mailbox "Out" of mail folder ""
-
- Or just:
-
- make message InsertHere end of mailbox "Out" of mail folder ""
-
- You can actually use the more normal word "at" rather then "InsertHere",
- but when you run the script it will change to "InsertHere". Wierd.
-
- Hope this helps.
-
- Steve
-
- ---------------------
- jonke@gsfc.nasa.gov
- ---------------------
- =========================================================================
- Date: Tue, 29 Mar 1994 02:05:43 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "William J. Jamison" <jami1@AOL.COM>
- Subject: Re: reading the contents of a text file
-
- "Take a look at the ""File IO"" scripting addition. It's in the Scripting
- "Additions folder in your Extensions folder in the System Folder. Drag it
- "onto the Script Editor to open it's dictionary.
-
- I have AS (came with 660 AV and System 7 Pro), but ""File IO"" didn't come
- with either one of them. Is this indicative of a shortcoming in the examples
- dept or the capabilities of my system? Have I been short shrifted? Do you
- have more toys than me Steve?
-
- Jami1
- (Bill Jamison) Kelso, WA
- Old hippies never die.
- =========================================================================
- Date: Tue, 29 Mar 1994 02:05:55 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "William J. Jamison" <jami1@AOL.COM>
- Subject: Re: Q on opening files...
-
- "The problem occurs when the file to be opened is being created or modified
- on
- "the fly. In my case, I'm reading the file from a server someplace else in
- "the network. Basically, the handler looks like:
-
- "on hilited theObj
- " getFile("/foo.c", {alias "MacintoshHD:"})
- " tell application "Scriptable Text Editor"
- " open {file "MacintoshHD:Test"}
- " end tell
- "end hilited
-
- "In this case, getFile is a routine that grabs the file foo.c from the
- "remote server and puts it into a file called "Test" in the specified
- "folder. When this script is executed, I get the following error from the
- "finder:
-
- "An error occurred because the original item could not be found.
-
- Sounds like Frontmost has created a _temporary_ file and indeed it is telling
- you the truth, it's scratch, in limbo, kind of like here and not here at the
- same time. The phantom file syndrome. Virtual file glitch problem? A bug?
- Perhaps you need to set file type or creator?
-
- Jami1
- (Bill Jamison) Kelso, WA
- Old hippies never die.
- =========================================================================
- Date: Tue, 29 Mar 1994 02:06:05 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "William J. Jamison" <jami1@AOL.COM>
- Subject: Re: reading the contents of a text file
-
- "Another way to do this is to open the file with Scriptable Text Editor,
- "copy the contents of the file to a string variable:
-
- "Tell app "Scriptable Text Editor"
- " open a reference to file "Disk:folder:file"
- " set theText to text of window 1
- " quit saving no
- "end tell
- "set foo to "the file reads: "
- "return foo & theText & "thats all folks..."
-
- "This would be A LOT faster than using the File IO osax. However it is
- limited
- "to 32k, and is uglier -- you will see a window open and close on your
- "desktop.
-
- "-Dave
- "daver@netcom.com
-
- I vote for faster and ugliubbly.
-
- Jami1
- (Bill Jamison) Kelso, Wa
- Old ugly hippies don't run very fast.
- =========================================================================
- Date: Tue, 29 Mar 1994 09:42:33 +0100
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Johan Solve <johan.solve@ITN.HH.SE>
- Subject: Re: Example Eudora scripts
-
- > >I would dearly love to script my Eudora, but I haven't made much headway.
- > >Does anyone know of any example scripts that I could look at?
-
- I gaught Jon Pugh's script to sort incoming mail, and imporved it so it
- doesn't process mail in reverse order (but still SOOOO slow...)
-
- But when the mail is sorted, I have the hardest time to find the unread
- mail in the different mailboxes (gee, I think I have overused the idea of
- different mail boxes - hard to get an overview...)
- The best would of course be if Eudora had a marker in the Mailbox menu to
- indicate where there are unread mail (how 'bout that, Steve Dorner?). The
- next best would be if the command-right arrow would jump to the next unread
- message, no matter in which mailbox it is. Currently, it only jumps to the
- next unread message in the current mailbox.
-
- The third best thing would be to have a script find the next unread
- message. Does anyone have a script for this? I haven't come far enough in
- AppleScripting to feel confident in making a script like this.
-
-
- My modified mail sorting script follows (credits to Jon Pugh for the
- original script version). As usual, wrapped lines end with --.
-
-
- tell application "Eudora1.4.2"
- --activate -- disabled, faster if script is in foreground
- set n to number of message of mailbox "In" of mail folder ""
- set i to 1 -- use separate counter since the pointer should only
- -- increase if we don't move a message
- repeat with j from 1 to n
- try
- set itsTo to field "To" of message i of mailbox "In" of --
- mail folder ""
- on error
- set itsTo to ""
- end try
- try
- set itsCC to field "cc" of message i of mailbox "In" of --
- mail folder ""
- on error
- set itsCC to ""
- end try
- try
- set itssender to field "sender" of message i of mailbox --
- "In" of mail folder ""
- on error
- set itssender to ""
- end try
- set itsTo to itsTo & return & itsCC & return & itssender
- if itsTo contains "applescript%" or itsTo contains --
- "MACSCRPT%" then
- move message i of mailbox "In" of mail folder "" --
- inserthere end of mailbox "AppleScript" of mail folder ""
- else if itsTo contains "YACHT-L%" then
- move message i of mailbox "In" of mail folder "" --
- inserthere end of mailbox "yacht and sail" of mail folder ""
- else if itsTo contains "FMPRO-L%" then
- move message i of mailbox "In" of mail folder "" --
- inserthere end of mailbox "FileMaker Pro" of mail folder ""
- else if itsTo contains "info-mac digest" then
- move message i of mailbox "In" of mail folder "" --
- inserthere end of mailbox "info-mac digest" of mail folder ""
- else
- set i to i + 1 -- no message moved, increase pointer
- if i > number of message of mailbox "In" of mail folder --
- "" then exit repeat -- moved all messages already
- end if
- end repeat
- activate -- put Eudora to front to show we're done
- end tell
-
- _______________________________________________________________________
- "
- JOHAN SOLVE Department of Science and Technology
- <johan.solve@itn.hh.se> Halmstad University, Sweden
- =========================================================================
- Date: Tue, 29 Mar 1994 09:22:37 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Steven L. Rohall" <slrohall@TASC.COM>
- Subject: Re: Q on opening files...
-
- >Sounds like Frontmost has created a _temporary_ file and indeed it is telling
- >you the truth, it's scratch, in limbo, kind of like here and not here at the
- >same time. The phantom file syndrome. Virtual file glitch problem? A bug?
- >Perhaps you need to set file type or creator?
- >
- >Jami1
- >(Bill Jamison) Kelso, WA
- >Old hippies never die.
-
- Thanks for the reply. I haven't heard much from anyone else yet, so I'm
- still pretty much at a loss. I may be able to find a workaround, but if
- AppleScript is going to take off big time, there will have to be fewer
- hacks.... Thanks again,
-
- -Steve.
- =========================================================================
- Date: Tue, 29 Mar 1994 09:26:06 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Steven L. Rohall" <slrohall@TASC.COM>
- Subject: Re: Q on opening files...
-
- Sorry about my last posting to the mailing list. I intended it to go to
- Bill Jamison directly, but blindly used "reply" in my mailer.
-
- My comment on "hacks" still stands, though. :-)
-
- -Steve.
-
- +--------------------------------------------------------------+
- | Steven L. Rohall |
- | ________ _ ______ ______ |
- | 55 Walkers Brook Drive / / \ / / / / |
- | Reading, MA 01867-3297 / /___\ /______ / |
- | Tel: (617)942-2000 / / \ // |
- | Fax: (617)942-7100 / / \/______//______/ |
- | slrohall@tasc.com |
- | (MIME-conformant mail welcome.) |
- +--------------------------------------------------------------+
- =========================================================================
- Date: Tue, 29 Mar 1994 08:40:26 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jay Martin <jay_martin@POSTOFFICE.AIDT.EDU>
- Subject: Re> Q on opening files...
-
- >on hilited theObj
- > getFile("/foo.c", {alias "MacintoshHD:"})
- > tell application "Scriptable Text Editor"
- > open {file "MacintoshHD:Test"}
- > end tell
- >end hilited
- >
- >In this case, getFile is a routine that grabs the file foo.c from the
- >remote server and puts it into a file called "Test" in the specified
- >folder. When this script is executed, I get the following error from the
- >finder:
-
- >An error occurred because the original item could not be found.
-
- I would like to see the getFile routine. I suspect that that's where your
- problem is. What exactly does it do, and how? It sounds as if you're deleting
- a temp file, or maybe getting to the "open" in the tell statement *before*
- the getFile routine is finished. Just a guess.
-
- Jay
- +---------------------------------------+----------------------------------+
- | --------------+ Jay M. Martin | All ideas here are my own and |
- | +---------- | Alabama Industrial | in no way reflect my employer's. |
- | | ----------+ Development Training | martin@aidt.edu |
- | +---------------------------------- | (But what do they know?) |
- +---------------------------------------+----------------------------------+
- =========================================================================
- Date: Tue, 29 Mar 1994 10:04:34 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Matt Pauker <mattp26745@AOL.COM>
- Subject: Re: reading the contents of a text file
-
- >I have AS (came with 660 AV and System 7 Pro), but ""File >IO"" didn't come
- >with either one of them. Is this indicative of a shortcoming in >the
- examples
- >dept or the capabilities of my system? Have I been short >shrifted? Do you
- >have more toys than me Steve?
-
- System 7 Pro contained AppleScript 1.0, which didn't have all the tools of
- AppleScript 1.1 (The Scriptable Finder). I don't have AppleScript 1.1
- (Yet...It's coming Wednesday), but I bet that the "File IO" osax is probably
- in there.
-
- Matt P.
- mattp26745@aol.com
- =========================================================================
- Date: Tue, 29 Mar 1994 09:32:51 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: reading the contents of a text file
- In-Reply-To: Your message of "Tue, 29 Mar 94 10:04:34 EST"
-
- Your message dated: Tue, 29 Mar 94 10:04:34 EST
- >>I have AS (came with 660 AV and System 7 Pro), but ""File >IO"" didn't come
- >>with either one of them. Is this indicative of a shortcoming in >the
- >examples
- >>dept or the capabilities of my system? Have I been short >shrifted? Do you
- >>have more toys than me Steve?
- >
- >System 7 Pro contained AppleScript 1.0, which didn't have all the tools of
- >AppleScript 1.1 (The Scriptable Finder). I don't have AppleScript 1.1
- >(Yet...It's coming Wednesday), but I bet that the "File IO" osax is probably
- >in there.
-
- Nope. The File IO osax is part of the Script Tools collection written by Mark
- Alldritt. You can find it--and a lot of other cool stuff--on
- gaea.kgs.ukans.edu. Check out the applescript directory.
-
- Happy scripting.
-
- pf
-
-
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
-
- "Bad spellers of the world, untie!"
- --Graffito
- =========================================================================
- Date: Tue, 29 Mar 1994 10:38:54 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Stephen Jonke <jonke@GSFC.NASA.GOV>
- Subject: Re: reading the contents of a text file
-
- >I have AS (came with 660 AV and System 7 Pro), but ""File IO"" didn't come
- >with either one of them. Is this indicative of a shortcoming in the examples
- >dept or the capabilities of my system? Have I been short shrifted? Do you
- >have more toys than me Steve?
-
- Hmm.... I'm not sure - I've got the File IO addition. I have AS 1.1, do
- you have version 1.0?
-
- Steve
-
- ---------------------
- jonke@gsfc.nasa.gov
- ---------------------
- =========================================================================
- Date: Tue, 29 Mar 1994 11:13:26 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: reading the contents of a text file
- In-Reply-To: <no.id> from "Matt Pauker" at Mar 29, 94 10:04:34 am
-
- --Matt Pauker wrote:
- >
- >System 7 Pro contained AppleScript 1.0, which didn't have all the tools of
- >AppleScript 1.1 (The Scriptable Finder).
-
- AppleScript 1.1 and the Scriptable Finder really have nothing to do
- with each other, except for the fact that you would use AppleScript to
- access the Scriptable Finder. The SF isn't a released product, however,
- you can get the Golden Master (read as final un-released version) of the
- Finder Scripting Extension, which works with Finder 7.1.2 and up, if you
- purchase the AppleScript SDK from APDA ($199). This extension patches
- the Finder's AETE resource with a full compliment of Apple Event calls.
- This summer when System 7.5 is released, I expect the Finder Scripting
- Extension to disappear in favor of a fully scriptable, recordable, and
- hopfully, attachable Finder.
-
- >I don't have AppleScript 1.1 (Yet...It's coming Wednesday), but I bet
- >that the "File IO" osax is probably in there.
-
- As has alread been stated, the File IO osax is part of the Script
- Tools osaxen suit that you can find, along with a whole bunch of other
- really cool scripting stuff at: ftp://gaea.kgs.ukans.edu/applescript.
-
- -Hades
- =========================================================================
- Date: Tue, 29 Mar 1994 12:04:47 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Graham Heyes <heyes@DAHP1.CEBAF.GOV>
- Subject: Recording events and other issues...
-
- I have "The Tao of AppleScript" and most of the additions from gaea and have
- been happily writing scripts for a month or so. (life with a Mac is becoming
- much nicer!) "The Tao" mentions that one of the best ways to learn more about
- the syntax of the language is to press the record button on the Script Editor
- and record a script or two. My problem is that absolutely nothing happens when
- I hit the button appart from a flashing Icon in the top left of the screen. I
- can open and close applications, move windows, open files from apps etc etc and
- nothing appears in the script window of the script editor. I've looked through
- "The Tao" and info on using the Record feature is in short supply. I am running
- 7.1 on a Daystar accelerated Mac II with 20Mb of physical memory Ram Doubled to
- 40Mb, lots of extensions. The main point is that every other feature of
- AppleScript as described in "The Tao" works perfectly. My only guess is that
- the apps I am working with are not recordable, Excel, Word, WordPerfect 3,
- FileMakerPRO, event the scriptable text editor all give nothing...
-
-
- ... On a second track, what is the best way to move data from a doc opened by
- one app to a doc opened by the other? I wrote a script to copy an address from
- a FM PRO address book into a variable then tried to insert it at the top of a
- letter opened with WordPerfect 3.0. I thought the easiest way would be to get
- the data onto the clipboard then send paste to WP 3.0 but paste wasn't in it's
- dictionary.Iin the end I used the AutoType scripting addition to send a
- command-v. It works but it doesn't look nice. This must be a thing which get's
- done all the time but I'm sort on examples and "The Tao of applescript" is
- vague on the subject.
-
-
- Graham
-
- -<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-
- Graham Heyes,CEBAF,12000 Jefferson Ave,Newport News,VA 23606,Tel:(804) 249-7030
- =========================================================================
- Date: Tue, 29 Mar 1994 11:36:34 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jay Martin <jay_martin@POSTOFFICE.AIDT.EDU>
- Subject: Re> Recording events
-
- Most applications are not recordable yet. This is because the application
- must be "factored" so that the user interface generates apple events to
- itself to perform the various application functions (I don't know if this is
- exactly correct, but it's close). This can be a daunting task for existing
- applications. However, the scriptable text editor is recordable. I don't know
- why it isn't recording your events. Anyone else have any ideas?
-
- Jay
- +---------------------------------------+----------------------------------+
- | --------------+ Jay M. Martin | All ideas here are my own and |
- | +---------- | Alabama Industrial | in no way reflect my employer's. |
- | | ----------+ Development Training | martin@aidt.edu |
- | +---------------------------------- | |
- +---------------------------------------+----------------------------------+
- =========================================================================
- Date: Tue, 29 Mar 1994 11:38:20 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: Recording events and other issues...
- In-Reply-To: Your message of "Tue, 29 Mar 94 12:04:47 EST"
-
- Graham,
-
- >I have "The Tao of AppleScript" and most of the additions from gaea and have
- >been happily writing scripts for a month or so. (life with a Mac is becoming
- >much nicer!) "The Tao" mentions that one of the best ways to learn more about
- >the syntax of the language is to press the record button on the Script Editor
- >and record a script or two. My problem is that absolutely nothing happens when
- >I hit the button appart from a flashing Icon in the top left of the screen. I
- >can open and close applications, move windows, open files from apps etc etc
- >and nothing appears in the script window of the script editor. I've looked
- >looked through "The Tao" and info on using the Record feature is in short
- >I am running a Daystar accelerated Mac II with 20Mb of physical memory Ram
- >Doubled to 40Mb, lots of extensions. The main point is that every other
- >feature of AppleScript as described in "The Tao" works perfectly. My only
- >guess is that the apps I am working with are not recordable, Excel, Word,
- >WordPerfect 3, >FileMakerPRO, event the scriptable text editor all give
- nothing...
-
- Right you are. I think you can record StuffIt Lite. You can also record the
- Scriptable Text Editor. And the Scriptable Finder (if you have the developer's
- kit or a beta copy of the System 7.5 software.
-
-
- Since I'm sitting at a non-Mac workstation and my memory is weak, I'll let
- someone else tackle the FMPro stuff--though my guess is that you need to
- format the clipboard contents.
-
- pf
-
-
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
-
- "Bad spellers of the world, untie!"
- --Graffito
- =========================================================================
- Date: Tue, 29 Mar 1994 11:40:09 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: Re> Recording events
- In-Reply-To: Your message of "Tue, 29 Mar 94 11:36:34 EST"
-
- >Most applications are not recordable yet. This is because the application
- >must be "factored" so that the user interface generates apple events to
- >itself to perform the various application functions (I don't know if this is
- >exactly correct, but it's close). This can be a daunting task for existing
- >applications. However, the scriptable text editor is recordable. I don't know
- >why it isn't recording your events. Anyone else have any ideas?
- >
-
- You know, I have a script from Ed Lai that checks the contents of your hard
- drive and builds a list of scriptable applications (there is a Frontier
- version of this script somewhere. John?) When I get home tonight, I'll upload
- it to gaea.
-
- pf
-
-
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
-
- "Bad spellers of the world, untie!"
- --Graffito
- =========================================================================
- Date: Tue, 29 Mar 1994 11:50:08 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jay Martin <jay_martin@POSTOFFICE.AIDT.EDU>
- Subject: Re> Re: Re> Recording events
-
- >You know, I have a script from Ed Lai that checks the contents of your hard
- >drive and builds a list of scriptable applications (there is a Frontier
- >version of this script somewhere. John?) When I get home tonight, I'll
- upload
- >it to gaea.
-
- I believe I saw that somewhere. But remember (just for everyone's benefit),
- applications can be scriptable but not recordable!
-
- Jay
- +---------------------------------------+----------------------------------+
- | --------------+ Jay M. Martin | All ideas here are my own and |
- | +---------- | Alabama Industrial | in no way reflect my employer's. |
- | | ----------+ Development Training | martin@aidt.edu |
- | +---------------------------------- | |
- +---------------------------------------+----------------------------------+
- =========================================================================
- Date: Tue, 29 Mar 1994 13:10:13 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Graham Heyes <heyes@DAHP1.CEBAF.GOV>
- Subject: Re: Recording events and other issues... Thanks for the replies
- to my posting. I guess it is still early days for
-
- AppleScript so most thinks aren't yet scriptable. I will try some more with
- recording the "Scriptable Text Editor" it may be that the things I tried on it
- were not recordable but others will be. I did have to re-format the text from
- FM PRO by socking it into an applescript variable then spitting it out via
- AutoType. All this use of AutoType is not nice, maybe some day soon more things
- will be directly scriptable and I can get rid of the hacks. One frustrating
- thing is that some things like WordPerfect 3.0 seem to support scripting for
- bizzare actions but not for simple thinks like cut, copy and paste which I
- would have thought would be the most obvious for a word processor.
-
- Graham
-
- -<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-
- Graham Heyes,CEBAF,12000 Jefferson Ave,Newport News,VA 23606,Tel:(804) 249-7030
- =========================================================================
- Date: Tue, 29 Mar 1994 10:13:17 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mike Crawford <crawford@SCIPP.UCSC.EDU>
- Subject: Re: a request for contributions
- In-Reply-To: <01HACZQ112YQ0031KT@SERV02.SLAC.STANFORD.EDU> from "Fred Terry"
- at Mar 24, 94 08:42:54 pm
-
- Fred,
-
- A little bird told me that the next revision of Hypercard will support
- Word Services.
-
- I haven't seen it with my own eyes yet, but the folks at Apple tell me that
- it is working in Hypercard.
-
- It might be worth mentioning in your book. I am concerned, though, that
- if word leaks out too fast, the Apple execs will be annoyed and maybe take
- it back out. It wasn't really a management decision that got Word Services
- in - I just sent the WS SDK to one of the hypercard engineers, and he
- just stuck it in. He did get approval from the product manager for this,
- but I think that's as high up as it went.
-
- Mike Crawford
- working software
- crawford@scipp.ucsc.edu
-
- (PS - I think you still have my swiss address in your mailing list.)
- =========================================================================
- Date: Tue, 29 Mar 1994 13:19:04 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Penelope Jones <penjones@OTC.FSU.EDU>
- Subject: Updating Filemaker Database
-
- Updating Filemaker Databases
- I have two copies of a database. One copy is hosted by an Apple WorkGroup
- Server 95, and the other resides on a Duodock 230. I need to have the duodock
- login as a guest of the server, get any new records and/or update any existing
- records. This needs to be accomplished unattended, at night and across a
- network. I just received my copy of applescript, so I'm just beginning. Any
- help would be greatly appreciated.
-
- ********************************************************************************
- Penelope Jones Internet: penjones@otc.fsu.edu
- Florida State University AT&Tnet: (904) 644-PENY
- Telecommunications, B-72 FAXnet: (904) 644-4554
- Tallahassee, FL 32306-2035
-
- ********************************************************************************
- =========================================================================
- Date: Tue, 29 Mar 1994 13:24:29 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: Updating Filemaker Database
- In-Reply-To: Your message of "Tue, 29 Mar 94 13:19:04 +0800"
-
- Penelope,
-
- >Updating Filemaker Databases
- >I have two copies of a database. One copy is hosted by an Apple WorkGroup
- >Server 95, and the other resides on a Duodock 230. I need to have the duodock
- >login as a guest of the server, get any new records and/or update any existing
- >records. This needs to be accomplished unattended, at night and across a
- >network. I just received my copy of applescript, so I'm just beginning. Any
- >help would be greatly appreciated.
- >
-
- Check out the file
- ftp://gaea.kgs.ukans.edu/applescript/scripts/FileMaker_&_AppleScript.sea.hqx.
- It contains at least one script that shows you how to move records from one
- database to the other. I think there is also a script for removing duplicates.
-
- Enjoy.
-
- pf
-
-
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
-
- "Bad spellers of the world, untie!"
- --Graffito
- =========================================================================
- Date: Tue, 29 Mar 1994 14:46:51 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Allan Marcus <allan_marcus@LANL.GOV>
- Subject: What's Word Services?
-
- What are Word Srevices?
-
- Thanks,
-
-
- ---------------------------------------
- Allan Marcus
- Los Alamos National Laboratory
- "My opinions are my own, I think..."
-
- Voice: 505-665-1828
- CIS: 76666,2113
- AppleLink: Allan.Marcus
- e-world/NewtonMail: Allan.M
- InterNet: allan_marcus@lanl.gov <- note new address (deja vu!)
- ---------------------------------------
- =========================================================================
- Date: Tue, 29 Mar 1994 12:29:04 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Re> Recording events
-
- >You know, I have a script from Ed Lai that checks the contents of your hard
- >drive and builds a list of scriptable applications (there is a Frontier
- >version of this script somewhere. John?) When I get home tonight, I'll upload
- >it to gaea.
-
- Fred...the Frontier version is (on CompuServe, at GO USERLAND):
-
- Library #08 Name: From UserLand
- Uploaded by: 76244,120 [Dave Winer [UserLand SW]] Date: 5/20/93
-
- Name: AETE.SIT
- Size: 2304 bytes Downloads: 111 Type: binary
- Keywords: FIND AETE RESOURCES ALIASES SCRIPTING APPLESCRIPT FRONTIER
-
- This script travels thru the folder it was launched from searching for
- applications that have 'aete' resources. It creates a folder that contains
- aliases to all these apps. The presence of an aete resource indicates that
- the application can be scripted, either with Frontier or AppleScript.
- Requires Frontier or Frontier Runtime 2.0. Packed with StuffIt 3.0. DW
-
-
- I don't have it handy here...say the word and I'll download it. Note that
- a few applications can be scripted with Frontier but do not contain 'aete'
- resources (MacWrite Pro 1.0 is the most interesting example, since it was
- released nearly the same week as Apple's "stealth" release of AppleScript
- last Spring. The current MacWrite Pro (1.5) has an 'aete' and more
- scripting support).
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Tue, 29 Mar 1994 12:28:59 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Recording events and other issues...
-
- At 12:04 3/29/94 -0500, Graham Heyes wrote:
- >... On a second track, what is the best way to move data from a doc opened by
- >one app to a doc opened by the other? I wrote a script to copy an address from
- >a FM PRO address book into a variable then tried to insert it at the top of a
- >letter opened with WordPerfect 3.0. I thought the easiest way would be to get
- >the data onto the clipboard then send paste to WP 3.0 but paste wasn't in it's
- >dictionary.Iin the end I used the AutoType scripting addition to send a
- >command-v. It works but it doesn't look nice. This must be a thing which get's
- >done all the time but I'm sort on examples and "The Tao of applescript" is
- >vague on the subject.
-
- Best way? I dunno. A working way to move data (in this case to the very
- beginning of WordPerfect's frontmost document):
-
- tell application "FileMaker Pro"
- set temp to Cell "x" of Record 2
- end tell
-
- tell application "WordPerfect"
- copy first character of document 1 to kludge
- copy temp & return & kludge to before first character of document 1
- end tell
-
- The copy to kludge and inclusion of kludge in what is copied into the
- document is a response to what appears to be a bug in WordPerfect
- (3.0...one of many related to scripting support): The copy "to before
- first character" acts to replace the first character.
-
- -------
- Regarding the clipboard: The application you copy from must be the
- frontmost application when you do a copy, and the application you paste
- into must be the frontmost application when you do the paste. Use activate
- as necessary to achieve that. That's how the system scrap (aka Clipboard)
- works on the Mac, unfortunately...blame the premature and unofficial
- release of "Switcher" years ago.
-
- --John
-
- PS...result of the above script:
-
- 'Twas brillig and the slithy toves
- Did gyre and gymbol in the wabe
- All mimsy were the borogoves
- And the momrath outgabe.
- This is a test. It is what was here before I put in what comes before.
-
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Tue, 29 Mar 1994 14:37:29 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: Re> Recording events
- In-Reply-To: Your message of "Tue, 29 Mar 94 12:29:04 PST"
-
- >>You know, I have a script from Ed Lai that checks the contents of your hard
- >>drive and builds a list of scriptable applications (there is a Frontier
- >>version of this script somewhere. John?) When I get home tonight, I'll upload
- >>it to gaea.
- >
- >Fred...the Frontier version is (on CompuServe, at GO USERLAND):
- >
- >Library #08 Name: From UserLand
- >Uploaded by: 76244,120 [Dave Winer [UserLand SW]] Date: 5/20/93
- >
- >Name: AETE.SIT
- >Size: 2304 bytes Downloads: 111 Type: binary
- >Keywords: FIND AETE RESOURCES ALIASES SCRIPTING APPLESCRIPT FRONTIER
- >
- > This script travels thru the folder it was launched from searching for
- >applications that have 'aete' resources. It creates a folder that contains
- >aliases to all these apps. The presence of an aete resource indicates that
- >the application can be scripted, either with Frontier or AppleScript.
- >Requires Frontier or Frontier Runtime 2.0. Packed with StuffIt 3.0. DW
- >
-
- Ah, thanks John. You can find it at
- ftp://gaea.kgs.ukans.edu/frontier/findAETEs.sit.hqx. I was pretty sure I'd
- already downloaded it, but couldn't remember the name.
-
- pf
-
-
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
-
- "Bad spellers of the world, untie!"
- --Graffito
- =========================================================================
- Date: Tue, 29 Mar 1994 16:37:10 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Andy J. Williams" <Andy.J.Williams@DARTMOUTH.EDU>
- Subject: MS: ADMIN
-
- Just time for another re-post of the official MacScripting "Three Address You
- Need To Know(TM)"
-
- Read it and weep.
-
- -A
-
- -------------
-
- * LISTSERV@dartmouth.edu
- the master controller. Mail is handled by computer
- so you have a limited set of commands you can send it.
- (Sending the HELP command will get you basics on this
- including instructions on how to sign off the list and
- set basic options for yourself like whether you want to
- receive the list in digest format or not)
-
- * MacScripting-Request@dartmouth.edu
- Fred Terry and Andy J. Williams, the list administrators.
- We can be contacted when you have a problem with the LISTSERV
- program above or when you have any administrative questions.
-
- * MacScripting@dartmouth.edu
- the distribution list. Mail sent here goes to
- all the recipients.
- =========================================================================
- Date: Tue, 29 Mar 1994 17:03:35 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Stephen Jonke <jonke@GSFC.NASA.GOV>
- Subject: Example Excel AppleScripts?
-
- Does anyone have any examples of AppleScripting Excel that I could look at?
- I looked on gaea, but there were no Excel AppleScripts there. Also, are
- there any guides available for AppleScripting Excel? The document
- mentioned in the Excel manual seems to be oriented toward AppleEvents, as
- opposed to AppleScript (i.e. low level).
-
- Steve
-
- ---------------------
- jonke@gsfc.nasa.gov
- ---------------------
- =========================================================================
- Date: Tue, 29 Mar 1994 17:23:19 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Stephen Jonke <jonke@GSFC.NASA.GOV>
- Subject: How do you read an apps dictionary?
-
- I could use some basic help on how you read/interprete an applications
- dictionary. For example, how do I figure out the use of the "Range" class
- in Excel by looking at it's definition? Here it is:
-
- Class Range: A range of spreadsheet cells
- Elements:
- Cell by numeric index, by name
- Column by numeric index, by name
- Row by numeric index
- Properties:
- [various properties here - deleted for brevity]
-
- How do I determine by looking at the above how to reference a range? How
- do I know what I can do with it? For instance, can I set the values of the
- cells in a range?
-
- How about something as "simple" as selection-object:
-
- Class selection-object: the selection visible to the user
- Properties:
- contents type class [r/o] -- the contents of the selection
-
- How do I reference the current selection? How do I determine this from the
- dictionary?
-
- Also, the list of properties seems straight forward, but I'm not sure I
- understand the list of elements. Is it a list of things that CAN be part
- of the object, or is a list of things that are a part of the object and the
- exact number of them? I would think that a "range" would consist of two
- cell references, yet it's only listed once in the elements. Basically, I'm
- confused! :)
-
- Steve
-
- ---------------------
- jonke@gsfc.nasa.gov
- ---------------------
- =========================================================================
- Date: Tue, 29 Mar 1994 18:24:31 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Beef jerky? <john@ASTRO.OCIS.TEMPLE.EDU>
- Subject: Re: Updating Filemaker Database
- In-Reply-To: <9403291926.AA03191@astro.ocis.temple.edu>
-
- On Tue, 29 Mar 1994, Fred Terry wrote:
-
- > >Updating Filemaker Databases
- > >I have two copies of a database. One copy is hosted by an Apple WorkGroup
- > >Server 95, and the other resides on a Duodock 230. I need to have the duodoc
- k
- > >login as a guest of the server, get any new records and/or update any existin
- g
- > >records. This needs to be accomplished unattended, at night and across a
- > >network. I just received my copy of applescript, so I'm just beginning. Any
- > >help would be greatly appreciated.
-
- Also, stop what you are working on an dfind out if you have FileMaker Pro
- version 2.1v2. The v2 is important, as apparently it has a much more complete
- dictionary (from what I have heard).
-
- For example, in v1 there is an "open database" command, but no "open
- database with password" command like in v2.
-
- It may not make any difference in your particular application, but it
- makes sense to get up to date....
-
-
- John
- =========================================================================
- Date: Tue, 29 Mar 1994 18:53:52 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mike Crawford <crawford@SCIPP.UCSC.EDU>
- Subject: Re: What's Word Services?
- In-Reply-To: <01HAJKFK68MA002EFQ@SERV02.SLAC.STANFORD.EDU> from "Allan Marcus"
- at Mar 29, 94 02:46:51 pm
-
- >
- > What are Word Srevices?
- >
-
- Here is the abstract of a talk I will give at MacHack '94 in Ann Arbor in
- June.
-
- Send me your postal address and I will mail you the word services SDK.
-
- Mike
-
- The Word Services Apple Event Suite
- Michael D. Crawford
- Product Development Manager
- Working Software, Inc.
-
- The Word Services Apple Event Suite allows any application to link to
- a speller, grammar checker or other text service as if it was a
- built-in menu item. Working Software developed the protocol in
- cooperation with our competitors in the spelling business, as well as
- several grammar checker, database and word processor publishers, and
- Apple Computer, Inc. It is probably the simplest useful thing that a
- developer can do with Apple Events.
-
- Word Services is designed to be very easy for client programs to
- implement - the client (or word processor) needs only to send a single
- Apple Event to a server program (or spellchecker) and then resume its
- event loop. The server takes over control of the protocol, retrieving
- and changing text in the client program's document by using a small
- subset of Core Suite Apple Events. The complete source code to
- Writeswell Jr. will be distributed along with the protocol specification.
- Writeswell Jr. is a simple word processor that supports Word Services,
- and is provided as an example that developers may use to add support for
- the protocol to their own applications.
-
- Word Services applications have been shipping for over a year and a half.
- Spellers are available in a number of languages, and client programs ranging
- from a curriculum planner with a total of ten users to a major word
- processor have adopted the protocol. Mr. Crawford will reflect on the
- long process of developing and promoting an industry standard protocol.
- =========================================================================
- Date: Wed, 30 Mar 1994 11:55:24 +0730
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Tan Jin Ho <jinho@NCB.GOV.SG>
- Subject: Eudora Scripting
-
- Hi,
- We would like to try out Eudora's scripting capability by writing an
- AppleScript script to send messages. We opened Eudora 1.4.1's dictionary and
- tried to use the create element verb but couldn't get it to work. Has
- somebody done this before, and is willing to share the knowledge ?
- Thanks.
-
- Regards,
- Jin-Ho
- jinho@ncb.gov.sg
- =========================================================================
- Date: Tue, 29 Mar 1994 22:13:20 PST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: SteakFace <asmith@PRODIGY.BC.CA>
- Subject: Scriptable Finder -- will it "hide" apps?
-
- I've listened to all this voluminous talk about the "Scriptable Finder" and
- etc. Does it, or any other AS extension, have the ability to "hide" and
- "show" windows (a la Application Menu)?
-
- Cheers
- SteakFace
-
-
-
- =================================================================
- SteakFace graphic designer - media manipulator - bad mood guy
- datapanik asmith@prodigy.bc.ca
- Vancouver, Canada
- =================================================================
- My cat would like to know why it is that we humans are so willing
- to lick each other's genitals, but we won't lick our own.
- =========================================================================
- Date: Tue, 29 Mar 1994 22:44:45 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Excel note
-
- An ongoing discussion in a newsgroup (comp.sys.mac.programming???) is about
- selecting between two ways to cause Excel to modify a spreadsheet, from
- within an application.
-
- Method 1: Using the OSA tools, compile a suitable script, and execute it.
-
- Method 2: Using the AE Manager and the Object Support stuff, generated the
- needed events to cause the change.
-
- Method 1, including some research to jog my memory, took a half hour or so
- (but see below).
-
- Method 2 has taken the rest of the evening, and I can now launch Excel (if
- needed) and open the document (but see below). NOW I get to start on the
- good stuff. But at least I'm running PowerPC native code <grin>.
-
- The above exercise began with this script as a working model:
-
- tell application "Microsoft Excel"
- open alias "Dev:Development:ToyStore:ExcelHack"
- set value of Cell 1 of Column 1 to 27.9
- end tell
-
- That has the unfortunate effect if ExcelHack is already open and modified
- in Excel of causing Excel to ask Notification Manager to bring it to the
- front, and ask if I want to revert to the saved version of the file.
- Interesting, in view of the lack of a Revert command in Excel's file menu.
-
- And particularly interesting when executed from my toy application, since I
- carefully sent the open event with the kAENeverInteract flag in the send
- mode parameter. Ah, well: revised model script:
-
- tell application "Microsoft Excel"
- if not (exists Document "ExcelHack") then
- open alias "Dev:Development:ToyStore:ExcelHack"
- end if
- set value of Cell 1 of Column 1 to 27.9
- end tell
-
- [Note in all cases, I'm deliberately leaving the spreadsheet open and
- unsaved. Laziness.]
-
- I hope these musings help someone. I'm hacking the code into a toy
- application I'm playing with...this game is a separate source file, and if
- it seems instructive when done I'll ask Fred to let me put it up on gaea as
- sample code.
-
-
- My conclusion is fairly clear: in most cases it will be better (that is:
- easier) to go the OSA script route rather than continue to write AE Manager
- code.
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Wed, 30 Mar 1994 04:00:15 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "William J. Jamison" <jami1@AOL.COM>
- Subject: Re: reading the contents of a text file
-
- "Nope. The File IO osax is part of the Script Tools collection written by
- Mark
- "Alldritt. You can find it--and a lot of other cool stuff--on
- "gaea.kgs.ukans.edu. Check out the applescript directory.
-
- "Happy scripting.
-
- "pf
-
- Thanks Fred. Hated to think that _some_ of us would in some way be deprived.
- Now if I can just keep from getting elbowed in line at the gaea FTP ?
- =========================================================================
- Date: Wed, 30 Mar 1994 04:00:33 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "William J. Jamison" <jami1@AOL.COM>
- Subject: Re: Re> Recording events
-
- ">You know, I have a script from Ed Lai that checks the contents of your hard
- ">drive and builds a list of scriptable applications (there is a Frontier
- ">version of this script somewhere. John?) When I get home tonight, I'll
- upload
- ">it to gaea.
-
- "Fred...the Frontier version is (on CompuServe, at GO USERLAND):
-
- "Library #08 Name: From UserLand
- "Uploaded by: 76244,120 [Dave Winer [UserLand SW]] Date: "5/20/93
-
- "Name: AETE.SIT
- "Size: 2304 bytes Downloads: 111 Type: binary
- "Keywords: FIND AETE RESOURCES ALIASES SCRIPTING APPLESCRIPT FRONTIER
-
- Fred and John,
- Is this what you're looking for?
-
- suites.samples.findAETEs:
-
- "Creates a folder of aliases of apps that have an 'aete' resource
- "contact the developers for a Frontier install file!
- "or ask on one of UserLand's on-line services
-
- local (folder = file.getSystemDisk () + "Scriptable Apps:");
- file.sureFolder (folder); "make sure the folder exists
-
- try { "ignore errors in the loop
- fileloop (f in "", infinity) { "look at all files on all disks
- if file.type (f) == 'APPL' {
- if rez.countResources (f, 'aete') > 0 {
- local (alias = folder + file.fileFromPath (f));
- if not file.exists (alias) { "we'll take the 1st one we found
- file.newAlias (f, alias)}}}}};
-
- Finder.reveal (folder) "show the folder in the Finder
-
- If it is, (groping in the dark) and I suspect it is, the only way I could get
- it to work was to insert the name of a disk in the quotes in the "fileloop(f
- in "", infinity)". Then when I did the main applications disk ("Thelma"), the
- script died at Popcorn and there was nothing in "Scriptable Apps".I took the
- The Games disk ("Louise") was a big disappointment, the script ran all the
- way thru, but didn't come up with anything. The Pocket Drive ("J.D.") came up
- with "TeleFinderx Pro 2.2" and "TeleFinderx/User 3.2.3", weird, big surprise
- with Authorware not being scriptable. Then I copied Popcorn over to Louise
- and deleted it off of Thelma and re-ran it on Thelma and got "StuffIt
- Expanderx 3.0.1", "FileMaker Pro", "UserLand Frontierx", "PageMaker 4.2" and
- """drumroll""" "Popcornx" (a different one, Get Info revealed Version: 1.01;
- circumspect investigation of the culprit Popcorn on Louise had no version.
- Hmmm. """flush""" )
- =========================================================================
- Date: Wed, 30 Mar 1994 07:13:18 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: John Schettino <js12@GTE.COM>
- Subject: Re: Eudora Scripting
-
- >Hi,
- > We would like to try out Eudora's scripting capability by writing an
- >AppleScript script to send messages. We opened Eudora 1.4.1's dictionary and
- >tried to use the create element verb but couldn't get it to work. Has
- >somebody done this before, and is willing to share the knowledge ?
- >Thanks.
- >
- >Regards,
- >Jin-Ho
- >jinho@ncb.gov.sg
-
- Its weird! Here's some to get you started:
-
- tell application "Eudora 2.0.2"
- -- new message
- set newMsg to CreateElement Message InsertHere end of Mailbox "Out" of
- Mail Folder ""
- set field "To" of newMsg to "someone@somewhere.org"
- set field "" of newMsg to "this is the mail body"
- -- mail it
- queue forMsg QueueType 1
- end tell
-
- - john
-
- -----------------------------------------
- js12@gte.com GTE Laboratories
- John Schettino Waltham, MA
- =========================================================================
- Date: Wed, 30 Mar 1994 08:34:48 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: Scriptable Finder -- will it "hide" apps?
- In-Reply-To: Your message of "Tue, 29 Mar 94 22:13:20 PST"
-
- In your message to Multiple recipients of list MACSCRPT (cc to me) you wrote:
- > ...
-
-
- Your message dated: Tue, 29 Mar 94 22:13:20 PST
- >I've listened to all this voluminous talk about the "Scriptable Finder" and
- >etc. Does it, or any other AS extension, have the ability to "hide" and
- >"show" windows (a la Application Menu)?
- >
-
- Hmmm...that's a good question. Dunno. Why not use
-
- ftp://gaea.kgs.ukans.edu/applescript/osaxen/App_Menu_OSAX.sit.hqx ?
-
- pf
-
-
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
- =========================================================================
- Date: Wed, 30 Mar 1994 09:44:20 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Matthew Ahrens <ai158@FREENET.BUFFALO.EDU>
- Subject: New Stuff on Info-mac
-
- there are some new files on Info-Mac that you might be interested in.
- perhaps they should be put on gaea. i am the author or matt's scripts, so
- i can send that to whatever address necessary to get it on gaea if you like.
-
-
- Date: Mon, 28 Mar 1994 09:25:53 -0500
- From: ai158@freenet.buffalo.edu (Matthew Ahrens)
- Subject: [*] Matt's Scripts (AppleScript)
-
- These are some scripts for AppleScript that I wrote. They include:
- Replace in text editor
- Dial Number
- Number Lines
- Get Item Info
-
- I hope you enjoy them!
-
- [Archived as /info-mac/dev/src/matts-scripts-as.hqx; 59K]
-
- --------------------
-
- Date: Sun, 27 Mar 1994 14:09:11 -0500
- From: gtq1@cornell.edu (Greg Quinn)
- Subject: [*] GTQ Scripting Library1.1 (AppleScript)
-
- Please distribute this new version of my GTQ Scripting Library to the usual
- places. Thanks!
-
- Greg
- Greg Quinn
- AppleLink:D3297
- Internet:gtq1@Cornell.edu
-
- [Archived as /info-mac/dev/src/gtq-scripting-lib-11-as.hqx; 263K]
-
- --
- My opinions are mine only and tentative, pending further data
- Matthew Ahrens
- ai261@FreeNet.Carleton.ca ai158@FreeNet.Buffalo.edu
- MacRules2@aol.com <-Last Resorts-> Matthew210@aol.com
- =========================================================================
- Date: Wed, 30 Mar 1994 10:36:22 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Matthew Ahrens <ai158@FREENET.BUFFALO.EDU>
- Subject: AppleScript Runtime 1.1
-
- two questions.
-
- does applescript Runtime 1.1 include frontmost and the script editor?
-
- where can i get Runtime? i havn't seen it in any mail order places, so i guess
- it is only available from APDA. how can i contact them? email/800 phone
- preferred.
-
- tia!
-
- --
- My opinions are mine only and tentative, pending further data
- Matthew Ahrens
- ai261@FreeNet.Carleton.ca ai158@FreeNet.Buffalo.edu
- MacRules2@aol.com <-Last Resorts-> Matthew210@aol.com
- =========================================================================
- Date: Wed, 30 Mar 1994 12:03:21 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: David Kim <dckim@CS.PURDUE.EDU>
- Subject: Re: AppleScript Runtime 1.1
- In-Reply-To: Your message of "Wed,
- 30 Mar 1994 10:36:22 EST."
- <199403301546.KAA28299@arthur.cs.purdue.edu>
-
- >two questions.
- >
- >does applescript Runtime 1.1 include frontmost and the script editor?
- >
- >where can i get Runtime? i havn't seen it in any mail order places, so i guess
- >it is only available from APDA. how can i contact them? email/800 phone
- >preferred.
- >
- >tia!
- >
- >--
- >My opinions are mine only and tentative, pending further data
- > Matthew Ahrens
- >ai261@FreeNet.Carleton.ca ai158@FreeNet.Buffalo.edu
- >MacRules2@aol.com <-Last Resorts-> Matthew210@aol.com
-
- Hello...
-
- Actually the Frontmost is not included with the Runtime AppleScript packet
- from APDA. APDA number is 800-282-2732.
-
- David Kim
- -----------
- David Kim, Macintosh Specialist Internet: dckim@cs.purdue.edu
- Purdue University Computer, Science Dept. Bitnet: dckim@purccvm
- CS Building, Room 273 Phone: (317) 743-8187
- West Lafayette, IN 47907, USA Fax: (317) 494-0739
- =========================================================================
- Date: Wed, 30 Mar 1994 12:04:56 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: Scriptable Finder -- will it "hide" apps?
- In-Reply-To: <no.id> from "SteakFace" at Mar 29, 94 10:13:20 pm
-
- --SteakFace wrote:
- >
- >I've listened to all this voluminous talk about the "Scriptable Finder" and
- >etc. Does it, or any other AS extension, have the ability to "hide" and
- >"show" windows (a la Application Menu)?
-
- Absolutely. There isn't a direct "hide" command, but once you get a
- handle on how the Scriptable Finder looks as apps, and files, and stuff
- it's easy to locate. Here's an example:
-
- tell application "Finder"
- set visible of process "Script Editor" to false
- end tell
-
- This will hide the Script Editor, or any other application. Even if
- that application isn't scriptable. This is because the function is
- actually controlling the Process Manager, and not the application
- itself. It tells the Process Manager to "hide" a given named process.
-
- -Hades
- =========================================================================
- Date: Wed, 30 Mar 1994 08:54:27 PST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: carl juarez <retrofut@SEANEWS.AKITA.COM>
- Organization: SEANEWS - Seattle Public Access News + Mail
- Subject: Re: reading the contents of a text file
- In-Reply-To: <199403300904.AA06366@nwnexus.wa.com>
-
- "William J. Jamison" <jami1@aol.com> writes:
-
- > "Nope. The File IO osax is part of the Script Tools collection written by
- > Mark
- > "Alldritt. You can find it--and a lot of other cool stuff--on
- > "gaea.kgs.ukans.edu. Check out the applescript directory.
- >
- > "Happy scripting.
- >
- > "pf
- >
- > Thanks Fred. Hated to think that _some_ of us would in some way be deprived.
- > Now if I can just keep from getting elbowed in line at the gaea FTP ?
-
- Is there any way I can get to gaea.kgs.etc via e-mail? I don't have FTP
- access but my mailer's robust.
-
- Another Q: Is anyone interested in doing a digest form of this list? 30
- messages/day is a little too much, especially when they're short
- appendages to other short messages (like this one).
-
- Thanks in a dvance,
- Carl J.
-
- --
- [] SEANEWS [] Seattle Public Access Usenet News + Mail [] +1 206 614 0048 []
- retrofut@seanews.akita.com
- =========================================================================
- Date: Wed, 30 Mar 1994 13:08:47 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: reading the contents of a text file
- In-Reply-To: <no.id> from "carl juarez" at Mar 30, 94 08:54:27 am
-
- --Carl Juarez wrote:
- >
- >Another Q: Is anyone interested in doing a digest form of this list? 30
- >messages/day is a little too much, especially when they're short
- >appendages to other short messages (like this one).
-
- If you want to get this list sent to you in digest form, all you
- need to do is send mail to listserv@dartmouth.edu, the subject line is
- ignored, and have the only line in the file read "set macscrpt digest".
- You will then receive the list as digest. I think it's sent out,
- automatically, one or two time per day.
-
- -Hades
- =========================================================================
- Date: Wed, 30 Mar 1994 12:07:16 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: new on gaea
-
- You'll find the scripts and osax collection that Matt Ahrens referred to on
- gaea now.
-
- ftp://gaea.kgs.ukans.edu/applescript/osaxen/GTQScriptingLibrary1.1.hqx
- ftp://gaea.kgs.ukans.edu/applescript/scripts/MattsScripts.hqx
-
- Enjoy.
-
- pf
-
-
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- Fred Terry Cadence Design Systems pfterry@lks.csi.com +1 913 841 1283
- =========================================================================
- Date: Wed, 30 Mar 1994 10:10:14 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Scriptable Finder -- will it "hide" apps?
-
- >I've listened to all this voluminous talk about the "Scriptable Finder" and
- >etc. Does it, or any other AS extension, have the ability to "hide" and
- >"show" windows (a la Application Menu)?
-
- Finder is just an application...it has no more reason to be the controller
- of other application's visibility than any other application does.
-
- Fred has pointed you to a Scripting Addition which does the job.
-
- Scriptable Finder, itself, can have its own layer hidden (the icons remain,
- as usual), with
-
- set application "Finder"'s visible to false
-
- Other scriptable applications may or may not support a settable visible
- property, but the Registry doesn't call for it (unless I've missed it).
-
- Finder does not (per the dictionary, anyhow) support the Do Menu event from
- the miscellaneous suite, which would have been one possibility.
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Wed, 30 Mar 1994 10:15:36 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: Scriptable Finder -- will it "hide" apps?
-
- >>I've listened to all this voluminous talk about the "Scriptable Finder" and
- >>etc. Does it, or any other AS extension, have the ability to "hide" and
- >>"show" windows (a la Application Menu)?
- >
- > Absolutely. There isn't a direct "hide" command, but once you get a
- >handle on how the Scriptable Finder looks as apps, and files, and stuff
- >it's easy to locate. Here's an example:
- >
- > tell application "Finder"
- > set visible of process "Script Editor" to false
- > end tell
- >
-
- Oops...I just "crossed" a wrong answer with Brian's right answer, above. I
- missed the process class just now while looking through Finder's
- dictionary. So...ignore the wrong part of my answer.
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Wed, 30 Mar 1994 12:54:49 U
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: mark stewart <mark_stewart@BIAD23.UTHSCSA.EDU>
- Subject: Re: Re- reading the contents
-
- Reply to: RE>Re: reading the contents of
- > If you want to get this list sent to you in digest form, all you need
- > to do is send mail to listserv@dartmouth.edu, the subject line is
- > ignored, and have the only line in the file read "set macscrpt digest".
- > You will then receive the list as digest. I think it's sent out,
- > automatically, one or two time per day.
-
- Do I unsubscribe to the list in general and then subscribe to the digest? Or
- does "set macscrpt digest" modify my existing subscription?
-
- Ignorantly yours,
- Mark Stewart
- BIAD-Research Imaging Center
- UTHSCSA
- stewart@uthscsa.edu
- =========================================================================
- Date: Wed, 30 Mar 1994 14:17:46 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Brian V. Hughes" <hades@COOS.DARTMOUTH.EDU>
- Subject: Re: Re- reading the contents
- In-Reply-To: <no.id> from "mark stewart" at Mar 30, 94 12:54:49 pm
-
- --You wrote:
- >
- >Do I unsubscribe to the list in general and then subscribe to the
- >digest?
-
- No.
-
- >Or does "set macscrpt digest" modify my existing subscription?
-
- Yes.
-
- -Hades
- =========================================================================
- Date: Wed, 30 Mar 1994 11:04:41 LCL
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Tim Keanini <Tim_Keanini@BRODER.COM>
- Subject: debuggers and tools for AS
-
- Hi everyone,
-
- I have been working in Frontier now since the release and I have yet to find a
- debugging environment for applescript that compares to the one in Frontier.
- I know that there are companies that say that they will be out soon with their
- solution to my problem. Just in case I might have missed a release of two,
- does anyone know of a system that will give me a scripting development
- environment for applescript that would compare to Frontier 3.x?
-
- I use Frontier everyday and until something come out, there is no reason for me
- to switch over yet. :-)
-
- Tim Keanini <timk@broder.com> <blast@crl.com>
- =========================================================================
- Date: Wed, 30 Mar 1994 15:05:13 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Graham Heyes <heyes@DAHP1.CEBAF.GOV>
- Subject: who to send dosc event to...
-
- Ok this is probably a crazy question but I'm coming up with them this week.
-
- I was using tickle by Tim Endres before I started to look at AppleScript, the
- whole thing started through a need to learn TCL for a unix project I was
- setting up at work. Playing on the Mac is always more fun. Anyway, tickle has a
- faceless daemon called "the tickle engine" which can be started up from the
- "Startup Items" folder. You can then send an apple event to the tickle engine
- asking it to perform a script. My question is what is the equivalent mechanism
- for AppleScript? Suppose I have an application like filemaker pro which can
- send an apple event from it's own macro language I could then construct an
- AppleScript script and post it to be executed. The question is who to post it
- to and is such a thing possible?
-
- Graham
-
- -<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-<>-
- Graham Heyes,CEBAF,12000 Jefferson Ave,Newport News,VA 23606,Tel:(804) 249-7030
- =========================================================================
- Date: Thu, 31 Mar 1994 08:43:23 +0930
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Paul J. Stoll" <mnpjs@GAMGEE.CC.FLINDERS.EDU.AU>
- Subject: FileMakerPro dialog box problem
-
- Hello all!
-
- I am just starting out with Applescript and my first attempt is going a bit
- sour. I'm trying to access records from FileMakerPro v2.1 from Hypercard
- 2.2 (as it came bundled with ASv1.1) but I've fallen at the first hurdle.
-
- I can get the data and perform finds within FileMaker quite easily, and I
- can basically do everything I want to do (after one week with NO manuals
- etc!) as long as I manually open the FMP dbase BEFORE I run my HC stack.
- (BTW - I did see someone was asking earlier how to do a Find via AS
- without having to use "canned" scripts within FMP, so if still interested
- just say so.)
-
- My problem is that when I call up FMP from HC via AS I get a dialog box in
- FMP (which remains INVISIBLE) but is asking for a FMP database to open.
- This hangs up AS until I manually clear off the dialog box. I tried to
- open the application with a database file, but it still has to fire up FMP
- first. I can bypass the dialog box by opening FMP from HC with a simple
- open command, but this is very UGLY as I then see the FMP log-on screen and
- FMP retains 'focus' (sorry I'm a PC man really, this Mac stuff is pretty
- new to me), and I have to manually get back to my HC stack.
-
- Anybody know a way around this? Can I use (and wher can I GET) something
- like AutoType which I see many of you are using to hack incompletely
- "scriptable" applications, or is there another way?
-
- As an aside, HCv2.2 SAYS it can build stand-alone applications from system
- 7, and all the blurb's in the manual, and I even get SOME of the stuff they
- say when I try to "Save a Copy", but I DON'T get the pop-up list of
- File-Types as the manual states. I'm using system 7.1 (which I would HOPE
- would be backwardly compatible with system 7????) Any takers? Or should I
- post this question on the HC listserver?
-
- Thanks for listening, and I hope I can supply help to others in the future
- once I've got my tortured brain in some sort of AS shape.
-
-
- Paul J. Stoll
- Computer Assisted Learning Unit
- Flinders University of South Australia
- Flinders Medical Centre
- Bedford Park. 5042.
- South Australia.
- =========================================================================
- Date: Wed, 30 Mar 1994 16:55:00 PST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Mark Alldritt <alldritt@WIMSEY.COM>
- Subject: Re: reading the contents of a text file
-
- >Your message dated: Tue, 29 Mar 94 10:04:34 EST
- >>>I have AS (came with 660 AV and System 7 Pro), but ""File >IO"" didn't come
- >>>with either one of them. Is this indicative of a shortcoming in >the
- >>examples
- >>>dept or the capabilities of my system? Have I been short >shrifted? Do you
- >>>have more toys than me Steve?
- >>
- >>System 7 Pro contained AppleScript 1.0, which didn't have all the tools of
- >>AppleScript 1.1 (The Scriptable Finder). I don't have AppleScript 1.1
- >>(Yet...It's coming Wednesday), but I bet that the "File IO" osax is probably
- >>in there.
- >
- >Nope. The File IO osax is part of the Script Tools collection written by Mark
- >Alldritt. You can find it--and a lot of other cool stuff--on
- >gaea.kgs.ukans.edu. Check out the applescript directory.
- >
- >Happy scripting.
- >
- >pf
-
- I should probably keep my mouth shut at this point, but Apple introduced a
- file IO OSAX of their own in the AppleScript 1.1 release. Unlike my File
- IO addition which assumes you want to work with text files (a line at a
- time), the Apple addition treats a file as a sequence of bytes.
-
- The two OSAXs co-exist, so you pick the one which best meets your needs.
-
- -Mark
- =========================================================================
- Date: Wed, 30 Mar 1994 18:27:26 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: FileMakerPro dialog box problem
-
- >Hello all!
- >
- >I am just starting out with Applescript and my first attempt is going a bit
- >sour. I'm trying to access records from FileMakerPro v2.1 from Hypercard
- >2.2 (as it came bundled with ASv1.1) but I've fallen at the first hurdle.
- >
- >I can get the data and perform finds within FileMaker quite easily, and I
- >can basically do everything I want to do (after one week with NO manuals
- >etc!) as long as I manually open the FMP dbase BEFORE I run my HC stack.
- >(BTW - I did see someone was asking earlier how to do a Find via AS
- >without having to use "canned" scripts within FMP, so if still interested
- >just say so.)
- >
- >My problem is that when I call up FMP from HC via AS I get a dialog box in
- >FMP (which remains INVISIBLE) but is asking for a FMP database to open.
- >This hangs up AS until I manually clear off the dialog box. I tried to
- >open the application with a database file, but it still has to fire up FMP
- >first. I can bypass the dialog box by opening FMP from HC with a simple
- >open command, but this is very UGLY as I then see the FMP log-on screen and
- >FMP retains 'focus' (sorry I'm a PC man really, this Mac stuff is pretty
- >new to me), and I have to manually get back to my HC stack.
-
- One method:
- Run a HyperTalk script which opens the FileMaker Pro DOCUMENT you are
- interested in opening. That's like double-clicking the FileMaker database
- in the Finder.
-
- There are other methods, involving any of several methods of talking the
- Finder into opening the database.
-
- Down the road, when Scriptable Finder is out, you will be able to say
- something like
-
- tell application "Finder" to open file "your database"
-
-
- >As an aside, HCv2.2 SAYS it can build stand-alone applications from system
- >7, and all the blurb's in the manual, and I even get SOME of the stuff they
- >say when I try to "Save a Copy", but I DON'T get the pop-up list of
- >File-Types as the manual states. I'm using system 7.1 (which I would HOPE
- >would be backwardly compatible with system 7????) Any takers? Or should I
- >post this question on the HC listserver?
-
- I haven't the foggiest idea why you are having trouble. I haven't yet seen
- a file dialog without the popup, even just now when I made an empty new
- stack and immediately did Save a Copy... .
-
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Wed, 30 Mar 1994 20:05:16 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "John W. Baxter" <jwbaxter@OLYMPUS.NET>
- Subject: Re: FileMakerPro dialog box problem
-
- At 08:43 3/31/94 +0930, Paul J. Stoll wrote:
-
- >I am just starting out with Applescript and my first attempt is going a bit
- >sour. I'm trying to access records from FileMakerPro v2.1 from Hypercard
- >2.2 (as it came bundled with ASv1.1) but I've fallen at the first hurdle.
- >
- >I can get the data and perform finds within FileMaker quite easily, and I
- >can basically do everything I want to do (after one week with NO manuals
- >etc!) as long as I manually open the FMP dbase BEFORE I run my HC stack.
- >(BTW - I did see someone was asking earlier how to do a Find via AS
- >without having to use "canned" scripts within FMP, so if still interested
- >just say so.)
- >
- >My problem is that when I call up FMP from HC via AS I get a dialog box in
- >FMP (which remains INVISIBLE) but is asking for a FMP database to open.
- >This hangs up AS until I manually clear off the dialog box. I tried to
- >open the application with a database file, but it still has to fire up FMP
- >first. I can bypass the dialog box by opening FMP from HC with a simple
- >open command, but this is very UGLY as I then see the FMP log-on screen and
- >FMP retains 'focus' (sorry I'm a PC man really, this Mac stuff is pretty
- >new to me), and I have to manually get back to my HC stack.
-
- Paul,
-
- I was a bit flippant before in my response. This script, as the button
- script on a button in my test HyperCard stack, successfully launches
- FileMaker, opening the indicated database (also a "toy", like the stack).
-
- on mouseUp
- set theFolder to alias "Vashon:FileMaker:"
- set theDoc to {alias "Vashon:FileMaker:JWB"}
- tell application "Finder"
- open theFolder items theDoc
- end tell
- end mouseUp
-
- That script will end with FileMaker as the frontmost application. I don't
- know how to avoid FileMaker starting up in front with this sort of
- script...you can certainly activate Hypercard right away. But...see below.
-
- You will note that the construction of the event is rather "strange". The
- whole original Finder suite is strange, as viewed with a knowledge of the
- released, modern AppleScript. Things changed a LOT (and for the better)
- after System 7 Finder was frozen. [Finder has accepted the event sent to
- it by this script since System 7 appeared in May of 1991, and Finder was
- pretty much frozen in terms of its Apple events well before that.]
-
- Another oddity of the Finder Suite is that there is no reply to messages
- like open ... items ... . So I'm not sure that putting anything after the
- tell "Finder"...end tell will give you any synchronization with what
- FileMaker is doing...you may just have to delay for a while and hope for
- the best.
-
-
- And, yes...you really do have to create both the alias to the folder, and
- the list of items inside the folder. [The list can include more than one
- item.] That's true of those events in the old Finder Suite which refer to
- particular icons in windows (things in directories). The upcoming
- "Scriptable Finder" ignores that old stuff, and does everything the modern
- way (it still accepts the old events, but the modern ones aren't visibly
- related to them).
-
- --John
-
- --
- jwbaxter@pt.olympus.net (John W. Baxter) Port Ludlow, WA
- finger me to prove I'm all wet (Port Ludlow rainfall numbers).
- =========================================================================
- Date: Wed, 30 Mar 1994 20:43:46 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: James Edward Davis <jedavis@CS.STANFORD.EDU>
- Subject: Re: a request for contributions
-
- Regarding your book.. you had mentioned to me that you were going to
- mention my OSAX, and presumably the work of many other folks as well.
- You might consider asking all the extras to take a look at your
- manuscript and check the part particular to them, just to make sure
- capabilities etc are correctly represented. (Not that I think you'd be
- wrong, but things change etc) =)
- In the interest of completeness and correctness...
-
- The other thing.. if you decide to include my OSAX on a floppy with it, please
- let me know in advance, and Ill binhex a new version up for you with
- a couple fixes and documentation annotations that people suggested.
-
- Of course if you arent mentioning me, then this doesnt apply in my case,
- but thought it was a helpful suggestion none the less.
-
- later and good luck,
- James
- =========================================================================
- Date: Wed, 30 Mar 1994 23:40:05 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jon Pugh <jonpugh@NETCOM.COM>
- Subject: Re: Hypercard won't save
-
- John "I have nothing better to do than answer email" Baxter ;) already
- answered your FileMaker question, so I'll take a stab at the Hypercard
- part.
-
- >"Paul J. Stoll" <mnpjs@GAMGEE.CC.FLINDERS.EDU.AU> asks:
- >As an aside, HCv2.2 SAYS it can build stand-alone applications from system
- >7, and all the blurb's in the manual, and I even get SOME of the stuff they
- >say when I try to "Save a Copy", but I DON'T get the pop-up list of
- >File-Types as the manual states. I'm using system 7.1 (which I would HOPE
- >would be backwardly compatible with system 7????) Any takers? Or should I
- >post this question on the HC listserver?
-
- There is a bug which prevents this from working on machines with a 68000
- (i.e. the Plus, SE and PowerBook 100). You didn't say what machine you
- have, but I'm taking bets that it is one of these.
-
- Jon
- =========================================================================
- Date: Thu, 31 Mar 1994 10:46:14 +0000
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Jeremy Quinn <jermq@MEDIA.DEMON.CO.UK>
- Subject: Eudora Scripting Question
-
- Fellow Scripters
-
- I have mentioned here previously that I want to implement a ListServer with
- the combination of Eudora 2 and Frontier 3. I have some specific questions
- I need some help with.
-
-
-
- PROBLEM 1
-
- I need to add some extra fields to the Header of outgoing mail to make the
- listserver more convenient. I want a header that says something like:-
-
- From: List-Name@media.demon.co.uk
- Originator: Joe_Public@the.place.it.originally.came.from
-
- ...this is typical of listservers, you get info on where to make both
- public or private replies...
-
- I have found out how to change the "From:" field; ie.
-
- on setMessageFrom (msgObj, msgFrom) {
- with objectModel, Eudora, eventInfo {
- return (core.set (id, msgObj.field["From"], msgFrom))}}
-
- but
-
- 1. It can only be done while the message is in the Out Mailbox.
- 2. When you change the field contents, even under script control, Eudora comes
- up with a dialog box asking you to confirm the change.
- 3. I don't know how to add a non-standard field to the header,
- like "Originator:".
-
-
- PROBLEM 2
-
- I need to be able to keep and modify lists of subscribers to each list I
- offer. I want to do this under script control. When someone sends a
- subscribe request to my "Request" server mailbox, I want it handled
- automatically.
-
- I can find no AppleEvent mechanism for accessing the "Nicknames" database
- in Eudora.
-
- Am I going to handle this in Frontier? (Not an elegant solution).
-
-
- I am sorry if these questions are too specific for this forum.
-
- I have sent a duplicate message to Qualcomm (Eudora's publisher), and will
- post their reply if anyone is interested.
-
- cheers Jeremy
-
- . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
- Jeremy Quinn : Internet:
- 3D/Interactive : jermq@media.demon.co.uk
- Designer & : Phone:
- Green Design Consultant : +44 71 737 6831
- . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
- Member of O2 Global Network : PGP Key on public keyservers
- =========================================================================
- Date: Thu, 31 Mar 1994 08:41:42 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: new on gaea
-
- You'll find a couple of new files on gaea today
-
- ftp://gaea.kgs.ukans.edu/applescript/osaxen/DateCalculations.sit.hqx
- ftp://gaea.kgs.ukans.edu/applescript/scriptableapps/AcidJazz1.1v1.sit.hqx
-
- Come to think of it, I'm not sure whether AcidJazz is an app or not. I saw it
- mentioned in Matt Ahren's scripts, so I went and snagged it. If it isn't and I
- move it, I'll let everyone know.
-
- cheers.
-
- pf
-
-
-
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- Fred Terry Cadence Design Systems pfterry@lks.csi.com +1 913 841 1283
- =========================================================================
- Date: Thu, 31 Mar 1994 08:44:54 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Addison-Wesley AppleScript books
-
- For those of you who have been looking for the AppleScript Language Guide and
- Scripting Additions Guide, I noticed them in a flyer I got from Computer
- Literacy yesterday. (If you don't know about CL, it is a great bookstore on
- the west coast--oops, just noticed they have one in DC.) The prices are 29.95
- and 18.95, respectively, and the order numbers are CE568199 and CE568204. They
- take assorted plastic.
-
- Hope this helps someone.
-
- pf
-
-
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- Fred Terry Cadence Design Systems pfterry@lks.csi.com +1 913 841 1283
- =========================================================================
- Date: Thu, 31 Mar 1994 10:42:02 -0500
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Kyle Barger <kbarger@ACC.HAVERFORD.EDU>
- Subject: Applescript 1.1 upgrade: Worth it?
-
- Sorry if I you talked about this earlier and I missed it.... I bought the
- AppleScript Developer's Toolkit 1.0 from APDA back in December. Price was
- $199. I just called them and they said the upgrade to version 1.1 is $99.
- That seems a bit much for an incremental upgrade! What are the new
- features in 1.1? Is it worth it?
-
- --
- Kyle Barger Haverford College Academic Computing
- kbarger@haverford.edu
- =========================================================================
- Date: Thu, 31 Mar 1994 15:56:42 -0800
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Rob Dewhirst <robd@FARALLON.COM>
- Subject: UNSUBSCRIBE APPLESCRIPT robd@farallon.com
-
- UNSUBSCRIBE APPLESCRIPT robd@farallon.com
- UNSUBSCRIBE APPLESCRIPT Rob Dewhirst
- =========================================================================
- Date: Wed, 30 Mar 1994 14:55:34 PDT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: network_manager@ALDUS.COM
- Organization: Aldus Corporation, Seattle, WA
- Subject: NDN:Scriptable Finder -- will it "hide" apps?
-
- Your mail to the Microsoft Mail Server could not be fully
- delivered! Reasons listed below! It has been deleted.
- =========================================================================
- Date: Thu, 31 Mar 1994 16:31:00 GMT
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "Piercey, Chuck" <C.PIERCEY@APPLELINK.APPLE.COM>
- Subject: UNSUBSCRIBE APPLESCRIPT
-
- UNSUBSCRIBE APPLESCRIPT c.piercey@applelink.apple.com
- =========================================================================
- Date: Thu, 31 Mar 1994 10:42:13 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: Addison-Wesley AppleScript books
- In-Reply-To: Your message of "Thu, 31 Mar 94 08:38:33 PST"
-
- Steve,
-
- >>For those of you who have been looking for the AppleScript Language Guide and
- >>Scripting Additions Guide, I noticed them in a flyer I got from Computer
- >>Literacy yesterday. (If you don't know about CL, it is a great bookstore on
- >>the west coast--oops, just noticed they have one in DC.) The prices are 29.95
- >>and 18.95, respectively, and the order numbers are CE568199 and CE568204. The
- >y
- >>take assorted plastic.
- >>
- >>Hope this helps someone.
- >
- >Do you have a contact phone number for Computer Literacy?
- >
-
- Geeeeeezzzzz, what a moron (he says with an imprint of his hand squarely
- planted in the center of his forehead). I typed all of that in so people could
- call. Grr. The phone number is 408/435-0744. Here this should make up for it:
- the email address is info@clbooks.com.
-
- Sorry.
-
- pf
- =========================================================================
- Date: Thu, 31 Mar 1994 10:45:43 -0600
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Fred Terry <pfterry@LKS.CSI.COM>
- Subject: Re: reading the contents of a text file
- In-Reply-To: Your message of "Wed, 30 Mar 94 08:54:27 PST"
-
- Carl,
-
- >Is there any way I can get to gaea.kgs.etc via e-mail? I don't have FTP
- >access but my mailer's robust.
-
- I'm not real clear on the function, but you can get ftp stuff via email. Send
- the message
-
- help
-
- to ftpmail@pa.dec.com. That should give you back the commands to get the
- files. The first thing you'll want to get from gaea is /applescript/00index.
- It contains all of the files on the site.
-
- >Another Q: Is anyone interested in doing a digest form of this list? 30
- >messages/day is a little too much, especially when they're short
- >appendages to other short messages (like this one).
-
- You can get a digested version of this list by sending the message
-
- set macscrpt digest
-
- to listserv@dartmouth.edu. After that, you will get one (1) a day with all of
- the messages in it.
-
- BTW, the admistriva messages that Andy and I send out are really useful.
- Honestly. Scan them before you send them to the great bit bucket in the
- sky for recycling. You might want to send the message
-
- info refcard
-
- to find out everything that the listserv can do.
-
- pf
-
-
- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
- pf = Fred Terry, The Summit Group, pfterry@lks.csi.com, +1 913/841-1283
-
- "Bad spellers of the world, untie!"
- --Graffito
- =========================================================================
- Date: Thu, 31 Mar 1994 15:49:04 EST
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: "William J. Jamison" <jami1@AOL.COM>
- Subject: file IO osax
-
- "I should probably keep my mouth shut at this point, but Apple introduced a
- "file IO OSAX of their own in the AppleScript 1.1 release. Unlike my File
- "IO addition which assumes you want to work with text files (a line at a
- "time), the Apple addition treats a file as a sequence of bytes.
-
- "The two OSAXs co-exist, so you pick the one which best meets your needs.
-
- "-Mark
-
-
- Choices, choices...Me being the traditional application type programmer,
- I'll take the "line at a time" IO addition and do my own parsing if need be.
- I suppose the other has it's uses, but for throughput sake...
-
- Jami1
- (Bill Jamison) Kelso, WA
- =========================================================================
- Date: Thu, 31 Mar 1994 19:31:50 +0200
- Reply-To: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- Sender: Macintosh Scripting Systems <MACSCRPT@DARTCMS1.BITNET>
- From: Benno Palmert <palmert@ISYS-HH.HANSE.DE>
- Subject: Change FM scripts from Fontier
-
- The problem:
- I have three printers: a LaserWriter IIg, a HP DeskJet 510
- and a StyleWriter II. Every time I want to print in landscape format the
- page margins are different on each printer and the layouts for printing
- don't match as they should. To bypass this problem I created several
- scripts which should change the layout used for printing depending on
- the selected printer, to make it transparent for user's. I use FileMaker
- Pro 2.0v2, Frontier 3.0.1 and the Rinaldi's Chooser 1.7 verb for finding
- out the printer's name and then call the appropriate script to change
- the layout.
-
- The Frontier script is working so far, but it takes about 30 to 45 sec.
- to call a different layout from Frontier in FM - in a test database with
- only one record. How can I reduce the time for changing to a different
- layout?
-
- I want to import this script into the 2.0 RunTime.root but selecting the
- RunTime application in FM under "Specify application", every time
- "Unserland Frontier" appears and FM tries to look only for Frontier. FM
- doesn't seem to recognize Runtime 2.0. Why? What is going wrong?
-
- Thanks, Benno
-
-
-
-